Skip to content

Commit 5a985f3

Browse files
committed
Migrate to jitpack publishing
1 parent a392b90 commit 5a985f3

File tree

8 files changed

+77
-36
lines changed

8 files changed

+77
-36
lines changed

build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
plugins {
22
alias(libs.plugins.kotlin.android) apply false
33
alias(libs.plugins.android.library) apply false
4-
alias(libs.plugins.vanniktech.maven.publish) apply false
54
}

composed-permissions/build.gradle.kts

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
alias(libs.plugins.kotlin.android)
33
alias(libs.plugins.android.library)
4-
alias(libs.plugins.vanniktech.maven.publish)
4+
`maven-publish`
55
}
66

77
kotlin {
@@ -43,6 +43,42 @@ android {
4343
composeOptions {
4444
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get()
4545
}
46+
publishing {
47+
singleVariant("release") {
48+
withSourcesJar()
49+
withJavadocJar()
50+
}
51+
}
52+
}
53+
54+
publishing {
55+
publications {
56+
register<MavenPublication>("release") {
57+
groupId = "com.w2sv.composed"
58+
artifactId = "permissions"
59+
version = version.toString()
60+
pom {
61+
developers {
62+
developer {
63+
id.set("w2sv")
64+
name.set("Janek Zangenberg")
65+
}
66+
}
67+
description.set("Permission utils for development with Jetpack Compose.")
68+
url.set("https://github.com/w2sv/Composed")
69+
licenses {
70+
license {
71+
name.set("The Apache Software License, Version 2.0")
72+
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
73+
}
74+
}
75+
}
76+
77+
afterEvaluate {
78+
from(components["release"])
79+
}
80+
}
81+
}
4682
}
4783

4884
dependencies {

composed-permissions/gradle.properties

Lines changed: 0 additions & 3 deletions
This file was deleted.

composed/build.gradle.kts

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
alias(libs.plugins.kotlin.android)
33
alias(libs.plugins.android.library)
4-
alias(libs.plugins.vanniktech.maven.publish)
4+
`maven-publish`
55
}
66

77
kotlin {
@@ -44,12 +44,48 @@ android {
4444
excludes += "/META-INF/{AL2.0,LGPL2.1}"
4545
}
4646
}
47+
publishing {
48+
singleVariant("release") {
49+
withSourcesJar()
50+
withJavadocJar()
51+
}
52+
}
4753
}
4854

4955
tasks.withType(Test::class.java) {
5056
android.sourceSets.getByName("main").res.srcDir("src/test/res")
5157
}
5258

59+
publishing {
60+
publications {
61+
register<MavenPublication>("release") {
62+
groupId = "com.w2sv.composed"
63+
artifactId = "composed"
64+
version = version.toString()
65+
pom {
66+
developers {
67+
developer {
68+
id.set("w2sv")
69+
name.set("Janek Zangenberg")
70+
}
71+
}
72+
description.set("Generic utils for development with Jetpack Compose.")
73+
url.set("https://github.com/w2sv/Composed")
74+
licenses {
75+
license {
76+
name.set("The Apache Software License, Version 2.0")
77+
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
78+
}
79+
}
80+
}
81+
82+
afterEvaluate {
83+
from(components["release"])
84+
}
85+
}
86+
}
87+
}
88+
5389
dependencies {
5490
implementation(libs.compose.ui)
5591
implementation(libs.compose.ui.tooling)

composed/gradle.properties

Lines changed: 0 additions & 3 deletions
This file was deleted.

gradle.properties

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,11 @@ android.nonTransitiveRClass=true
1414

1515
kotlin.code.style=official
1616

17-
# Increase timeout when pushing to Sonatype (otherwise we get timeouts)
18-
systemProp.org.gradle.internal.http.socketTimeout=120000
19-
2017
# Removes uneccessary default build features
2118
android.defaults.buildfeatures.aidl=false
2219
android.defaults.buildfeatures.buildconfig=false
2320
android.defaults.buildfeatures.renderscript=false
2421
android.defaults.buildfeatures.resvalues=false
2522
android.defaults.buildfeatures.shaders=false
2623

27-
# Publishing
28-
SONATYPE_HOST=DEFAULT
29-
RELEASE_SIGNING_ENABLED=true
30-
SONATYPE_AUTOMATIC_RELEASE=true
31-
32-
GROUP=io.github.w2sv
33-
VERSION_NAME=0.0.1-SNAPSHOT
34-
35-
POM_INCEPTION_YEAR=2024
36-
POM_URL=https://github.com/w2sv/Composed
37-
38-
POM_LICENCE_NAME=The Apache Software License, Version 2.0
39-
POM_LICENCE_URL=https://www.apache.org/licenses/LICENSE-2.0.txt
40-
POM_LICENCE_DIST=repo
41-
42-
POM_SCM_URL=https://github.com/w2sv/Composed
43-
POM_SCM_CONNECTION=scm:git:git://github.com/w2sv/Composed.git
44-
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/w2sv/Composed.git
45-
46-
POM_DEVELOPER_ID=w2sv
47-
POM_DEVELOPER_NAME=Janek Zangenberg
48-
POM_DEVELOPER_URL=https://github.com/w2sv/
24+
version=0.0.1-rc2

gradle/libs.versions.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ compileSdk = "34"
44

55
kotlin = "1.9.22"
66
agp = "8.3.0"
7-
vanniktech-maven-publish = "0.27.0"
87

98
compose-compiler = "1.5.8"
109
compose-ui = "1.6.2"
@@ -34,4 +33,3 @@ roboelectric = { module = "org.robolectric:robolectric", version.ref = "robolect
3433
[plugins]
3534
android-library = { id = "com.android.library", version.ref = "agp" }
3635
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
37-
vanniktech-maven-publish = { id = "com.vanniktech.maven.publish", version.ref = "vanniktech-maven-publish" }

jitpack.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
jdk:
2+
- openjdk17

0 commit comments

Comments
 (0)