Skip to content

Commit 1224f66

Browse files
committed
Fixed build
1 parent c1f7f6b commit 1224f66

3 files changed

Lines changed: 16 additions & 11 deletions

File tree

.github/workflows/deploy-snapshot.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
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 }}

build.gradle

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ plugins {
77

88
group 'org.dxworks.utils'
99
version '1.0.0'
10+
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
1011

1112
repositories {
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+
2534
task 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-
}

src/test/kotlin/org/dxworks/argumenthor/config/sources/impl/ArgsSourceTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)