File tree Expand file tree Collapse file tree 21 files changed +50
-58
lines changed Expand file tree Collapse file tree 21 files changed +50
-58
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 80
80
gradle-dependencies-cache-key : |
81
81
gradle/libs.versions.toml
82
82
arguments : |
83
- check apiCheck artifactsCheck dependencyGuard lint ktlintCheck jvmWorkflowNodeBenchmarkJar --no-daemon --stacktrace --continue
83
+ check apiCheck checkVersionIsSnapshot artifactsCheck dependencyGuard lint ktlintCheck jvmWorkflowNodeBenchmarkJar --no-daemon --stacktrace --continue
84
84
concurrent : true
85
85
gradle-build-scan-report : false
86
86
gradle-distribution-sha-256-sum-warning : false
Original file line number Diff line number Diff line change 22
22
distribution : ' zulu'
23
23
java-version : 11
24
24
25
+ - name : Check for -SNAPSHOT version
26
+ run : ./gradlew checkVersionIsSnapshot --no-daemon
27
+
25
28
- name : Publish Snapshots
26
29
run : |
27
30
./gradlew clean build --no-daemon
Original file line number Diff line number Diff line change @@ -16,10 +16,12 @@ dependencies {
16
16
compileOnly(gradleApi())
17
17
18
18
implementation(libs.android.gradle.plugin)
19
+ implementation(libs.dokka.gradle.plugin)
19
20
implementation(libs.dropbox.dependencyGuard)
20
21
implementation(libs.kotlin.gradle.plugin)
21
22
implementation(libs.squareup.moshi)
22
23
implementation(libs.squareup.moshi.adapters)
24
+ implementation(libs.vanniktech.publish)
23
25
24
26
ksp(libs.squareup.moshi.codegen)
25
27
}
Original file line number Diff line number Diff line change
1
+ import com.android.build.gradle.TestedExtension
2
+ import com.squareup.workflow1.library
3
+ import com.squareup.workflow1.libsCatalog
4
+ import com.vanniktech.maven.publish.SonatypeHost
5
+
6
+ plugins {
7
+ id(" org.jetbrains.dokka" )
8
+ id(" com.vanniktech.maven.publish" )
9
+ // track all runtime classpath dependencies for anything we ship
10
+ id(" dependency-guard" )
11
+ }
12
+
13
+ group = project.property(" GROUP" ) as String
14
+ version = project.property(" VERSION_NAME" ) as String
15
+
16
+ mavenPublish {
17
+ sonatypeHost = SonatypeHost .S01
18
+ }
19
+
20
+ tasks.register(" checkVersionIsSnapshot" ) {
21
+ doLast {
22
+ val expected = " -SNAPSHOT"
23
+ require((version as String ).endsWith(expected)) {
24
+ " The project's version name must be suffixed with `$expected ` when checked in" +
25
+ " to the main branch, but instead it's `$version `."
26
+ }
27
+ }
28
+ }
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
`kotlin- jvm`
3
+ published
3
4
}
4
5
5
- apply (from = rootProject.file(" .buildscript/configure-maven-publish.gradle" ))
6
-
7
6
dependencies {
8
7
implementation(libs.kotlin.jdk8)
9
8
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
`kotlin- jvm`
3
3
id(" com.google.devtools.ksp" )
4
- id( " com.vanniktech.maven.publish " )
4
+ published
5
5
}
6
6
7
- apply (from = rootProject.file(" .buildscript/configure-maven-publish.gradle" ))
8
-
9
7
dependencies {
10
8
compileOnly(libs.jetbrains.annotations)
11
9
compileOnly(libs.squareup.moshi.codegen)
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ plugins {
2
2
id(" com.android.library" )
3
3
`kotlin- android`
4
4
`android- defaults`
5
- id( " org.jetbrains.dokka " )
5
+ published
6
6
}
7
7
8
8
android {
@@ -16,8 +16,6 @@ android {
16
16
}
17
17
}
18
18
19
- apply (from = rootProject.file(" .buildscript/configure-maven-publish.gradle" ))
20
-
21
19
dependencies {
22
20
api(project(" :workflow-runtime" ))
23
21
}
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
`java- library`
3
3
`kotlin- jvm`
4
- id( " org.jetbrains.dokka " )
4
+ published
5
5
}
6
6
7
7
tasks.withType<Test > {
@@ -18,8 +18,6 @@ tasks.withType<Test> {
18
18
}
19
19
}
20
20
21
- apply (from = rootProject.file(" .buildscript/configure-maven-publish.gradle" ))
22
-
23
21
dependencies {
24
22
api(project(" :workflow-runtime" ))
25
23
}
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
`kotlin- multiplatform`
3
- id( " org.jetbrains.dokka " )
3
+ published
4
4
}
5
5
6
- apply (from = rootProject.file(" .buildscript/configure-maven-publish.gradle" ))
7
-
8
6
kotlin {
9
7
jvm { withJava() }
10
8
ios()
Original file line number Diff line number Diff line change @@ -3,12 +3,10 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3
3
4
4
plugins {
5
5
`kotlin- multiplatform`
6
- id( " org.jetbrains.dokka " )
6
+ published
7
7
id(" org.jetbrains.kotlinx.benchmark" )
8
8
}
9
9
10
- apply (from = rootProject.file(" .buildscript/configure-maven-publish.gradle" ))
11
-
12
10
kotlin {
13
11
jvm {
14
12
compilations {
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
`kotlin- jvm`
3
- id( " org.jetbrains.dokka " )
3
+ published
4
4
}
5
5
6
- apply (from = rootProject.file(" .buildscript/configure-maven-publish.gradle" ))
7
-
8
6
dependencies {
9
7
compileOnly(libs.jetbrains.annotations)
10
8
Original file line number Diff line number Diff line change 3
3
plugins {
4
4
`java- library`
5
5
`kotlin- jvm`
6
- id( " org.jetbrains.dokka " )
6
+ published
7
7
}
8
8
9
9
tasks.withType< org.jetbrains.kotlin.gradle.tasks.KotlinCompile > {
@@ -20,8 +20,6 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
20
20
}
21
21
}
22
22
23
- apply (from = rootProject.file(" .buildscript/configure-maven-publish.gradle" ))
24
-
25
23
dependencies {
26
24
compileOnly(libs.jetbrains.annotations)
27
25
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
`kotlin- jvm`
3
- id( " com.vanniktech.maven.publish " )
3
+ published
4
4
}
5
5
6
- apply (from = rootProject.file(" .buildscript/configure-maven-publish.gradle" ))
7
-
8
6
dependencies {
9
7
compileOnly(libs.jetbrains.annotations)
10
8
Original file line number Diff line number Diff line change @@ -5,11 +5,9 @@ plugins {
5
5
`kotlin- android`
6
6
`android- defaults`
7
7
`android- ui- tests`
8
- id( " org.jetbrains.dokka " )
8
+ published
9
9
}
10
10
11
- apply (from = rootProject.file(" .buildscript/configure-maven-publish.gradle" ))
12
-
13
11
android {
14
12
buildFeatures.compose = true
15
13
composeOptions {
Original file line number Diff line number Diff line change @@ -5,11 +5,9 @@ plugins {
5
5
`kotlin- android`
6
6
`android- defaults`
7
7
`android- ui- tests`
8
- id( " org.jetbrains.dokka " )
8
+ published
9
9
}
10
10
11
- apply (from = rootProject.file(" .buildscript/configure-maven-publish.gradle" ))
12
-
13
11
android {
14
12
buildFeatures.compose = true
15
13
composeOptions {
Original file line number Diff line number Diff line change @@ -3,11 +3,9 @@ plugins {
3
3
`kotlin- android`
4
4
`android- defaults`
5
5
`android- ui- tests`
6
- id( " org.jetbrains.dokka " )
6
+ published
7
7
}
8
8
9
- apply (from = rootProject.file(" .buildscript/configure-maven-publish.gradle" ))
10
-
11
9
dependencies {
12
10
api(project(" :workflow-core" ))
13
11
api(project(" :workflow-ui:core-android" ))
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
`kotlin- jvm`
3
- id( " org.jetbrains.dokka " )
3
+ published
4
4
}
5
5
6
- apply (from = rootProject.file(" .buildscript/configure-maven-publish.gradle" ))
7
-
8
6
dependencies {
9
7
api(project(" :workflow-ui:core-common" ))
10
8
api(libs.kotlin.jdk6)
Original file line number Diff line number Diff line change @@ -3,11 +3,9 @@ plugins {
3
3
`kotlin- android`
4
4
`android- defaults`
5
5
`android- ui- tests`
6
- id( " org.jetbrains.dokka " )
6
+ published
7
7
}
8
8
9
- apply (from = rootProject.file(" .buildscript/configure-maven-publish.gradle" ))
10
-
11
9
dependencies {
12
10
compileOnly(libs.androidx.viewbinding)
13
11
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
`kotlin- jvm`
3
- id( " org.jetbrains.dokka " )
3
+ published
4
4
}
5
5
6
- apply (from = rootProject.file(" .buildscript/configure-maven-publish.gradle" ))
7
-
8
6
dependencies {
9
7
api(libs.kotlin.jdk6)
10
8
api(libs.squareup.okio)
Original file line number Diff line number Diff line change @@ -3,11 +3,9 @@ plugins {
3
3
`kotlin- android`
4
4
`android- defaults`
5
5
`android- ui- tests`
6
- id( " org.jetbrains.dokka " )
6
+ published
7
7
}
8
8
9
- apply (from = rootProject.file(" .buildscript/configure-maven-publish.gradle" ))
10
-
11
9
android {
12
10
// See https://github.com/Kotlin/kotlinx.coroutines/issues/1064#issuecomment-479412940
13
11
packagingOptions.exclude(" **/*.kotlin_*" )
You can’t perform that action at this time.
0 commit comments