File tree Expand file tree Collapse file tree
src/test/kotlin/org/dxworks/argumenthor/config/sources/impl Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 server-username : MAVEN_USERNAME
1919 server-password : MAVEN_PASSWORD
2020 - name : Publish package
21- run : gradle publish
22- env :
23- MAVEN_USERNAME : ${{ secrets.OSSRH_USER }}
24- MAVEN_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
25- ORG_GRADLE_PROJECT_signingKey : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
26- ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
21+ run : gradle publish
22+ env :
23+ MAVEN_USERNAME : ${{ secrets.OSSRH_USER }}
24+ MAVEN_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
25+ ORG_GRADLE_PROJECT_signingKey : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
26+ ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ plugins {
77
88group ' org.dxworks.utils'
99version ' 1.0.0'
10+ ext. isReleaseVersion = ! version. endsWith(" SNAPSHOT" )
1011
1112repositories {
1213 mavenCentral()
@@ -22,6 +23,14 @@ test {
2223 useJUnitPlatform()
2324}
2425
26+ tasks. withType(GenerateModuleMetadata ) {
27+ enabled = false
28+ }
29+
30+ tasks. withType(Sign ) {
31+ onlyIf { isReleaseVersion && findProperty(" signingKey" ) != null }
32+ }
33+
2534task sourceJar (type : Jar ) {
2635 classifier " sources"
2736 from sourceSets. main. allJava
@@ -150,7 +159,3 @@ model {
150159 dependsOn project. tasks. signArchives
151160 }
152161}
153-
154- tasks. withType(GenerateModuleMetadata ) {
155- enabled = false
156- }
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ internal class ArgsSourceTest {
1212 @Test
1313 fun get () {
1414 val argsSource = ArgsSource ().apply {
15- args = " -arg1Arg2=asd,sdf"
15+ args = arrayOf( " -arg1Arg2=asd,sdf" )
1616 }
1717
1818 val field = StringListField (" arg1.arg2" )
You can’t perform that action at this time.
0 commit comments