Skip to content

Commit 8824a2d

Browse files
committed
add jitpack.yml file
1 parent 13dbaf9 commit 8824a2d

File tree

5 files changed

+33
-29
lines changed

5 files changed

+33
-29
lines changed

.idea/gradle.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ buildscript {
1010
dependencies {
1111
classpath "com.android.tools.build:gradle:7.0.0-alpha14"
1212
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32"
13-
14-
// NOTE: Do not place your application dependencies here; they belong
15-
// in the individual module build.gradle files
1613
}
14+
1715
}
1816

1917
task clean(type: Delete) {

circularporgressview/build.gradle

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
plugins {
22
id 'com.android.library'
33
id 'kotlin-android'
4+
id 'maven-publish'
45
}
56

67
android {
7-
compileSdk 30
8+
compileSdkVersion 30
89
buildToolsVersion "30.0.3"
910

1011
defaultConfig {
11-
minSdk 21
12-
targetSdk 30
12+
minSdkVersion 21
13+
targetSdkVersion 30
1314
versionCode 1
1415
versionName "1.0"
1516

@@ -24,33 +25,22 @@ android {
2425
}
2526
}
2627
compileOptions {
27-
sourceCompatibility JavaVersion.VERSION_11
28-
targetCompatibility JavaVersion.VERSION_11
28+
sourceCompatibility JavaVersion.VERSION_1_8
29+
targetCompatibility JavaVersion.VERSION_1_8
2930
}
3031
kotlinOptions {
31-
jvmTarget = '11'
32+
jvmTarget = '1.8'
3233
}
3334

3435
buildFeatures {
3536
compose true
3637
}
3738

38-
composeOptions {
39-
kotlinCompilerVersion "1.4.32"
40-
kotlinCompilerExtensionVersion "1.0.0-beta05"
39+
packagingOptions {
40+
excludes -= "/META-INF/*.kotlin_module"
4141
}
42-
}
4342

44-
java {
45-
toolchain {
46-
languageVersion.set(JavaLanguageVersion.of(11))
47-
}
48-
}
4943

50-
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
51-
kotlinOptions {
52-
jvmTarget = "11"
53-
}
5444
}
5545

5646
dependencies {
@@ -63,8 +53,25 @@ dependencies {
6353
implementation "androidx.compose.ui:ui-tooling:$compose_version"
6454
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
6555
implementation 'androidx.activity:activity-compose:1.3.0-alpha07'
66-
testImplementation 'junit:junit:4.+'
56+
testImplementation 'junit:junit:5.7.1'
6757
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
6858
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
6959
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
60+
}
61+
62+
afterEvaluate {
63+
publishing {
64+
publications {
65+
// Creates a Maven publication called "release".
66+
release(MavenPublication) {
67+
// Applies the component for the release build variant.
68+
from components.release
69+
70+
// You can then customize attributes of the publication as shown below.
71+
groupId = 'com.bks.compose.circularprogressview'
72+
artifactId = 'circular-progress-view'
73+
version = '1.0.0'
74+
}
75+
}
76+
}
7077
}

jitpack.yml

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

sample/build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ android {
3737
buildFeatures {
3838
compose true
3939
}
40-
composeOptions {
41-
kotlinCompilerExtensionVersion compose_version
42-
kotlinCompilerVersion '1.4.32'
43-
}
40+
4441
}
4542

4643
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
@@ -60,7 +57,7 @@ dependencies {
6057
implementation "androidx.compose.ui:ui-tooling:$compose_version"
6158
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
6259
implementation 'androidx.activity:activity-compose:1.3.0-alpha06'
63-
testImplementation 'junit:junit:4.+'
60+
testImplementation 'junit:junit:5.7.1'
6461
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
6562
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
6663
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"

0 commit comments

Comments
 (0)