Skip to content

Commit 7620271

Browse files
authored
feat(gradle): upgrade the maven publishing (#6367)
* feat(gradle): update the publishing * feat(gradle): update the publishing * add cleanParam
1 parent cfaf4c0 commit 7620271

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ subprojects {
118118
// https://docs.gradle.org/current/dsl/org.gradle.api.tasks.testing.Test.html#org.gradle.api.tasks.testing.Test:environment
119119
environment 'CI', 'true'
120120
}
121+
122+
publishing {
123+
publications {
124+
mavenJava(MavenPublication) {
125+
from components.java
126+
}
127+
}
128+
}
121129
}
122130

123131
task copyToParent(type: Copy) {

framework/src/main/java/org/tron/core/config/args/Args.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ private static Map<String, String[]> getOptionGroup() {
373373
*/
374374
public static void setParam(final String[] args, final String confFileName) {
375375
Arch.throwUnsupportedJavaException();
376+
clearParam(); // reset all parameters to avoid the influence in test
376377
JCommander.newBuilder().addObject(PARAMETER).build().parse(args);
377378
if (PARAMETER.version) {
378379
printVersion();

jitpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
install:
2-
- ./gradlew clean -xtest -xlint -xcheck -PbinaryRelease=false install
2+
- ./gradlew clean -xtest -xlint -xcheck -PbinaryRelease=false publishToMavenLocal

0 commit comments

Comments
 (0)