Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ subprojects {
// https://docs.gradle.org/current/dsl/org.gradle.api.tasks.testing.Test.html#org.gradle.api.tasks.testing.Test:environment
environment 'CI', 'true'
}

publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
}

task copyToParent(type: Copy) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ private static Map<String, String[]> getOptionGroup() {
*/
public static void setParam(final String[] args, final String confFileName) {
Arch.throwUnsupportedJavaException();
clearParam(); // reset all parameters to avoid the influence in test
JCommander.newBuilder().addObject(PARAMETER).build().parse(args);
if (PARAMETER.version) {
printVersion();
Expand Down
2 changes: 1 addition & 1 deletion jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
install:
- ./gradlew clean -xtest -xlint -xcheck -PbinaryRelease=false install
- ./gradlew clean -xtest -xlint -xcheck -PbinaryRelease=false publishToMavenLocal