File tree 5 files changed +205
-151
lines changed
5 files changed +205
-151
lines changed Original file line number Diff line number Diff line change @@ -54,16 +54,12 @@ dependencies {
54
54
55
55
}
56
56
57
- task sourcesJar (type : Jar , dependsOn : classes) {
58
- classifier = ' sources'
57
+ tasks. register(' sourcesJar' , Jar ) {
58
+ dependsOn classes
59
+ archiveClassifier. set(' sources' )
59
60
from sourceSets. main. allSource
60
61
}
61
62
62
- task javadocJar (type : Jar , dependsOn : javadoc) {
63
- classifier = ' javadoc'
64
- from javadoc. destinationDir
65
- }
66
-
67
63
publishing {
68
64
publications {
69
65
mavenJava(MavenPublication ) {
@@ -80,25 +76,16 @@ publishing {
80
76
}
81
77
82
78
credentials {
83
- username = project. hasProperty(" mavenUser" ) ? project. property(" mavenUser" ) : " "
84
- password = project. hasProperty(" mavenPassword" ) ? project. property(" mavenPassword" ) : " "
79
+ username = project. hasProperty(" mavenUser" ) ? project. property(" mavenUser" ) : System . getenv( " MAVEN_USERNAME " )
80
+ password = project. hasProperty(" mavenPassword" ) ? project. property(" mavenPassword" ) : System . getenv( " MAVEN_PASSWORD " )
85
81
}
86
82
}
87
83
}
88
84
}
89
85
90
- artifacts {
91
- archives sourcesJar
92
- archives javadocJar
93
- }
94
-
95
86
compileKotlin {
96
- kotlinOptions {
97
- jvmTarget = " 1.8"
98
- }
87
+ kotlinOptions. jvmTarget = " 1.8"
99
88
}
100
89
compileTestKotlin {
101
- kotlinOptions {
102
- jvmTarget = " 1.8"
103
- }
104
- }
90
+ kotlinOptions. jvmTarget = " 1.8"
91
+ }
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-7.2 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.4 -bin.zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
You can’t perform that action at this time.
0 commit comments