Skip to content

Commit 8d4eaa6

Browse files
authored
publish patch 1 (#5)
1 parent a7c5b07 commit 8d4eaa6

File tree

8 files changed

+78
-10
lines changed

8 files changed

+78
-10
lines changed

app/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ android {
1212
minSdk = 21
1313
targetSdk = 34
1414
versionCode = 1
15-
versionName = "0.1.0"
15+
versionName = libs.versions.catppuccin.get()
1616
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1717
vectorDrawables {
1818
useSupportLibrary = true
@@ -29,11 +29,11 @@ android {
2929
}
3030
}
3131
compileOptions {
32-
sourceCompatibility = JavaVersion.VERSION_1_8
33-
targetCompatibility = JavaVersion.VERSION_1_8
32+
sourceCompatibility = JavaVersion.VERSION_17
33+
targetCompatibility = JavaVersion.VERSION_17
3434
}
3535
kotlinOptions {
36-
jvmTarget = "1.8"
36+
jvmTarget = "17"
3737
}
3838
buildFeatures {
3939
compose = true

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ buildscript {
22
repositories {
33
google()
44
mavenCentral()
5+
maven { setUrl("https://jitpack.io") }
56
}
67
}
78

compose/build.gradle.kts

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
alias(libs.plugins.org.jetbrains.kotlin.android)
33
alias(libs.plugins.android.library)
4+
`maven-publish`
45
}
56

67
android {
@@ -23,12 +24,18 @@ android {
2324
)
2425
}
2526
}
27+
publishing {
28+
singleVariant("release") {
29+
withSourcesJar()
30+
withJavadocJar()
31+
}
32+
}
2633
compileOptions {
27-
sourceCompatibility = JavaVersion.VERSION_1_8
28-
targetCompatibility = JavaVersion.VERSION_1_8
34+
sourceCompatibility = JavaVersion.VERSION_17
35+
targetCompatibility = JavaVersion.VERSION_17
2936
}
3037
kotlinOptions {
31-
jvmTarget = "1.8"
38+
jvmTarget = "17"
3239
}
3340
buildFeatures {
3441
compose = true
@@ -43,3 +50,17 @@ dependencies {
4350
implementation(libs.androidx.compose.material3)
4451
implementation(libs.androidx.core.ktx)
4552
}
53+
54+
afterEvaluate {
55+
publishing {
56+
publications {
57+
create<MavenPublication>("release") {
58+
groupId = "com.shifthackz.catppuccin"
59+
artifactId = "compose"
60+
version = libs.versions.catppuccin.get()
61+
62+
from(components["release"])
63+
}
64+
}
65+
}
66+
}

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[versions]
2+
catppuccin = "0.1.0"
23
activityCompose = "1.8.2"
34
androidGradlePlugin = "8.2.0"
45
kotlin = "1.9.10"

jitpack.yml

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

palette/build.gradle.kts

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
alias(libs.plugins.org.jetbrains.kotlin.android)
33
alias(libs.plugins.android.library)
4+
`maven-publish`
45
}
56

67
android {
@@ -23,15 +24,35 @@ android {
2324
)
2425
}
2526
}
27+
publishing {
28+
singleVariant("release") {
29+
withSourcesJar()
30+
withJavadocJar()
31+
}
32+
}
2633
compileOptions {
27-
sourceCompatibility = JavaVersion.VERSION_1_8
28-
targetCompatibility = JavaVersion.VERSION_1_8
34+
sourceCompatibility = JavaVersion.VERSION_17
35+
targetCompatibility = JavaVersion.VERSION_17
2936
}
3037
kotlinOptions {
31-
jvmTarget = "1.8"
38+
jvmTarget = "17"
3239
}
3340
}
3441

3542
dependencies {
3643
implementation(libs.androidx.compose.foundation)
3744
}
45+
46+
afterEvaluate {
47+
publishing {
48+
publications {
49+
create<MavenPublication>("release") {
50+
groupId = "com.shifthackz.catppuccin"
51+
artifactId = "palette"
52+
version = libs.versions.catppuccin.get()
53+
54+
from(components["release"])
55+
}
56+
}
57+
}
58+
}

settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ pluginManagement {
33
google()
44
mavenCentral()
55
gradlePluginPortal()
6+
maven { setUrl("https://jitpack.io") }
67
}
78
}
89
dependencyResolutionManagement {

splashscreen/build.gradle.kts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
alias(libs.plugins.android.library)
33
alias(libs.plugins.org.jetbrains.kotlin.android)
4+
`maven-publish`
45
}
56

67
android {
@@ -10,8 +11,28 @@ android {
1011
defaultConfig {
1112
minSdk = 21
1213
}
14+
publishing {
15+
singleVariant("release") {
16+
withSourcesJar()
17+
withJavadocJar()
18+
}
19+
}
1320
}
1421

1522
dependencies {
1623
api(libs.androidx.core.splashscreen)
1724
}
25+
26+
afterEvaluate {
27+
publishing {
28+
publications {
29+
create<MavenPublication>("release") {
30+
groupId = "com.shifthackz.catppuccin"
31+
artifactId = "splashscreen"
32+
version = libs.versions.catppuccin.get()
33+
34+
from(components["release"])
35+
}
36+
}
37+
}
38+
}

0 commit comments

Comments
 (0)