File tree Expand file tree Collapse file tree 8 files changed +78
-10
lines changed
Expand file tree Collapse file tree 8 files changed +78
-10
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ buildscript {
22 repositories {
33 google()
44 mavenCentral()
5+ maven { setUrl(" https://jitpack.io" ) }
56 }
67}
78
Original file line number Diff line number Diff line change 11plugins {
22 alias(libs.plugins.org.jetbrains.kotlin.android)
33 alias(libs.plugins.android.library)
4+ `maven- publish`
45}
56
67android {
@@ -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+ }
Original file line number Diff line number Diff line change 11[versions ]
2+ catppuccin = " 0.1.0"
23activityCompose = " 1.8.2"
34androidGradlePlugin = " 8.2.0"
45kotlin = " 1.9.10"
Original file line number Diff line number Diff line change 1+ jdk :
2+ - openjdk17
Original file line number Diff line number Diff line change 11plugins {
22 alias(libs.plugins.org.jetbrains.kotlin.android)
33 alias(libs.plugins.android.library)
4+ `maven- publish`
45}
56
67android {
@@ -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
3542dependencies {
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+ }
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ pluginManagement {
33 google()
44 mavenCentral()
55 gradlePluginPortal()
6+ maven { setUrl(" https://jitpack.io" ) }
67 }
78}
89dependencyResolutionManagement {
Original file line number Diff line number Diff line change 11plugins {
22 alias(libs.plugins.android.library)
33 alias(libs.plugins.org.jetbrains.kotlin.android)
4+ `maven- publish`
45}
56
67android {
@@ -10,8 +11,28 @@ android {
1011 defaultConfig {
1112 minSdk = 21
1213 }
14+ publishing {
15+ singleVariant(" release" ) {
16+ withSourcesJar()
17+ withJavadocJar()
18+ }
19+ }
1320}
1421
1522dependencies {
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+ }
You can’t perform that action at this time.
0 commit comments