Skip to content

Commit bcf2423

Browse files
committed
Merge branch 'release_0.19.0'
2 parents 0d2bdb8 + e1ffa74 commit bcf2423

File tree

4 files changed

+38
-65
lines changed

4 files changed

+38
-65
lines changed

docs/releasing.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,19 @@ git tag v{{ fladle.next_release }}
3636
git push origin v{{ fladle.next_release }}
3737
```
3838

39-
* Upload to Maven Central
39+
* Upload to Maven Central (this must run in two separate commands since they are from two different namespaces)
4040
``` bash
41-
./gradlew :fladle-plugin:publishAllPublicationsToMavenRepository -Pfladle.releaseMode -Dorg.gradle.internal.publish.checksums.insecure=true
41+
./gradlew :fladle-plugin:publishFladlePluginMarkerMavenPublicationToMavenCentralRepository publishFulladlePluginMarkerMavenPublicationToMavenCentralRepository -Pfladle.release
42+
./gradlew :fladle-plugin:publishPluginMavenPublicationToMavenCentralRepository -Pfladle.release
4243
```
4344
* Upload to Gradle Plugin Portal
4445
```bash
4546
./gradlew :fladle-plugin:publishPlugins -Pfladle.releaseMode -Dorg.gradle.internal.publish.checksums.insecure=true
4647
```
4748

4849
* Release to Maven Central
49-
* Login to Sonatype OSS Nexus: [https://oss.sonatype.org/](https://oss.sonatype.org/)
50-
* Click on **Staging Repositories**
50+
* Login to Maven Central Repository: [https://central.sonatype.com/](https://oss.sonatype.com/)
51+
* Click on **Publish**
5152

5253
* Merge the release branch to master
5354
```

fladle-plugin/build.gradle.kts

Lines changed: 29 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import org.gradle.api.tasks.testing.logging.TestLogEvent
22

33
group = "com.osacky.flank.gradle"
4-
version = "0.18.1-SNAPSHOT"
4+
version = "0.19.0"
55
description = "Easily Scale your Android Instrumentation Tests with Firebase Test Lab with Flank"
66

77
repositories {
@@ -15,8 +15,7 @@ plugins {
1515
`java-gradle-plugin`
1616
alias(libs.plugins.gradle.plugin.publish)
1717
alias(libs.plugins.kotlinter)
18-
`maven-publish`
19-
signing
18+
alias(libs.plugins.vanniktech.publish)
2019
}
2120

2221
// See https://github.com/slackhq/keeper/pull/11#issuecomment-579544375 for context
@@ -57,66 +56,37 @@ gradlePlugin {
5756
}
5857
}
5958

60-
val isReleaseBuild : Boolean = !version.toString().endsWith("SNAPSHOT")
59+
java {
60+
withJavadocJar()
61+
withSourcesJar()
62+
}
6163

62-
val sonatypeUsername : String? by project
63-
val sonatypePassword : String? by project
64+
mavenPublishing {
65+
publishToMavenCentral()
66+
signAllPublications()
6467

65-
publishing {
66-
repositories {
67-
repositories {
68-
maven {
69-
val releasesRepoUrl = uri("https://central.sonatype.com/api/v1/publisher/deployments/upload/")
70-
val snapshotsRepoUrl = uri("https://central.sonatype.com/repository/maven-snapshots/")
71-
url = if (isReleaseBuild) releasesRepoUrl else snapshotsRepoUrl
72-
credentials {
73-
username = sonatypeUsername
74-
password = sonatypePassword
75-
}
68+
pom {
69+
name.set("Fladle")
70+
description.set(project.description)
71+
url.set("https://github.com/runningcode/fladle")
72+
licenses {
73+
license {
74+
name.set("The Apache License, Version 2.0")
75+
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
7676
}
7777
}
78-
}
79-
publications {
80-
afterEvaluate {
81-
named<MavenPublication>("fladlePluginMarkerMaven") {
82-
pom.configureForFladle("Fladle")
78+
developers {
79+
developer {
80+
id.set("runningcode")
81+
name.set("Nelson Osacky")
8382
}
84-
85-
named<MavenPublication>("pluginMaven") {
86-
pom.configureForFladle("Fladle")
87-
}
88-
named<MavenPublication>("fulladlePluginMarkerMaven") {
89-
pom.configureForFladle("Fulladle")
90-
}
91-
}
92-
}
93-
}
94-
95-
signing {
96-
isRequired = isReleaseBuild
97-
}
98-
99-
fun org.gradle.api.publish.maven.MavenPom.configureForFladle(pluginName: String) {
100-
name.set(pluginName)
101-
description.set(project.description)
102-
url.set("https://github.com/runningcode/fladle")
103-
licenses {
104-
license {
105-
name.set("The Apache License, Version 2.0")
106-
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
10783
}
108-
}
109-
developers {
110-
developer {
111-
id.set("runningcode")
112-
name.set("Nelson Osacky")
84+
scm {
85+
connection.set("scm:git:git://github.com/runningcode/fladle.git")
86+
developerConnection.set("scm:git:ssh://github.com/runningcode/fladle.git")
87+
url.set("https://github.com/runningcode/fladle")
11388
}
11489
}
115-
scm {
116-
connection.set("scm:git:git://github.com/runningcode/fladle.git")
117-
developerConnection.set("scm:git:ssh://github.com/runningcode/fladle.git")
118-
url.set("https://github.com/runningcode/fladle")
119-
}
12090
}
12191

12292
tasks.withType(Test::class.java).configureEach {
@@ -134,10 +104,10 @@ tasks.withType(ValidatePlugins::class.java).configureEach {
134104

135105
// Ensure Java 11 Compatibility. See https://github.com/runningcode/fladle/issues/246
136106
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class.java).configureEach {
137-
kotlinOptions {
138-
jvmTarget = "11"
139-
languageVersion = "1.7"
140-
apiVersion = "1.7"
107+
compilerOptions {
108+
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11)
109+
languageVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_1_7)
110+
apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_1_7)
141111
}
142112
}
143113

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ kotlinter = { id = "org.jmailen.kotlinter", version = "4.0.0" }
88

99
gradle-plugin-publish = {id = "com.gradle.plugin-publish", version = "1.3.1" }
1010

11+
vanniktech-publish = { id = "com.vanniktech.maven.publish", version = "0.34.0" }
12+
1113
kgp = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin"}
1214
agp = { id = "com.android.application", version.ref = "agp-version"}
1315

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
extra:
66
fladle:
7-
current_release: '0.18.0'
8-
next_release: '0.18.1'
7+
current_release: '0.19.0'
8+
next_release: '0.19.1'
99
flank_version: '23.10.1'
1010

1111
site_name: Fladle

0 commit comments

Comments
 (0)