Skip to content

Commit babe11e

Browse files
committed
Adjusted gradle files so that publishing via jitpack should work correctly.
1 parent 9b6ae80 commit babe11e

File tree

7 files changed

+22
-49
lines changed

7 files changed

+22
-49
lines changed

.gitignore

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,7 @@ captures/
3434

3535
# IntelliJ
3636
*.iml
37-
.idea/workspace.xml
38-
.idea/tasks.xml
39-
.idea/gradle.xml
40-
.idea/assetWizardSettings.xml
41-
.idea/dictionaries
42-
.idea/libraries
43-
.idea/caches
37+
.idea/*
4438

4539
# Keystore files
4640
# Uncomment the following line if you do not want to check your keystore files in.

.idea/misc.xml

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

.idea/modules.xml

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

.idea/runConfigurations.xml

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

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77

88
}
99
dependencies {
10-
classpath 'com.android.tools.build:gradle:3.5.2'
10+
classpath 'com.android.tools.build:gradle:4.2.2'
1111

1212
// NOTE: Do not place your application dependencies here; they belong
1313
// in the individual module build.gradle files

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip

stunnel/build.gradle

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'maven-publish'
3+
4+
group = 'com.github.FWink'
5+
version = '1.0.2'
26

37
android {
48
compileSdkVersion 29
59
buildToolsVersion "29.0.2"
610
defaultConfig {
711
minSdkVersion 9
812
targetSdkVersion 29
9-
versionCode 10000001
10-
versionName "1.0.1"
13+
versionCode 10000002
14+
versionName version
1115
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1216
}
1317
buildTypes {
@@ -20,8 +24,18 @@ android {
2024

2125
dependencies {
2226
implementation fileTree(dir: 'libs', include: ['*.jar'])
23-
testImplementation 'junit:junit:4.12'
24-
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
25-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
2627
implementation 'androidx.annotation:annotation:1.1.0'
2728
}
29+
30+
afterEvaluate {
31+
publishing {
32+
publications {
33+
release(MavenPublication) {
34+
from components.release
35+
groupId = group
36+
artifactId = 'android-stunnel-lib'
37+
version = version
38+
}
39+
}
40+
}
41+
}

0 commit comments

Comments
 (0)