-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ghubstan/main
Organize Misq with multi-project Gradle build system
- Loading branch information
Showing
43 changed files
with
1,123 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
plugins { | ||
id 'java-library' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
apply from: '../buildSrc/misq-version.gradle' | ||
apply from: '../buildSrc/logging-dependencies.gradle' | ||
apply from: '../buildSrc/test-dependencies.gradle' | ||
|
||
dependencies { | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
plugins { | ||
id 'java-library' | ||
id 'application' | ||
id 'distribution' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
apply from: '../buildSrc/misq-version.gradle' | ||
|
||
application { | ||
project.mainClassName = 'network.misq.application.ApplicationMain' | ||
} | ||
|
||
distributions { | ||
main { | ||
distributionBaseName = 'app-dist' | ||
} | ||
} | ||
|
||
apply from: '../buildSrc/logging-dependencies.gradle' | ||
apply from: '../buildSrc/test-dependencies.gradle' | ||
|
||
dependencies { | ||
} | ||
|
||
tasks.named('jar') { | ||
manifest { | ||
attributes('Implementation-Title': project.name, | ||
'Implementation-Version': project.version, | ||
'Main-Class': 'network.misq.application.ApplicationMain') | ||
} | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
} |
13 changes: 13 additions & 0 deletions
13
application/src/main/java/network/misq/application/ApplicationMain.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package network.misq.application; | ||
|
||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
|
||
public class ApplicationMain { | ||
private static final Logger log = LoggerFactory.getLogger(ApplicationMain.class); | ||
|
||
public static void main(String[] args) { | ||
log.info("ApplicationMain"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration> | ||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n | ||
</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<root level="INFO"> | ||
<appender-ref ref="STDOUT"/> | ||
</root> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
plugins { | ||
id 'java' | ||
} | ||
|
||
group 'network.misq' | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
apply from: 'buildSrc/misq-version.gradle' | ||
apply from: 'buildSrc/os-arch.gradle' | ||
|
||
dependencies { | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
} |
Oops, something went wrong.