Skip to content

Commit a908dc8

Browse files
committed
Fix jitpack
1 parent bfe9256 commit a908dc8

File tree

4 files changed

+33
-34
lines changed

4 files changed

+33
-34
lines changed

anychart/build.gradle

+19-28
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
apply plugin: 'com.android.library'
1+
plugins {
2+
id 'com.android.library'
3+
id 'maven-publish'
4+
}
25

36
android {
4-
compileSdkVersion 34
5-
buildToolsVersion "34.0.0"
7+
compileSdk 33
68

79
defaultConfig {
810
minSdkVersion 19
9-
targetSdkVersion 34
11+
targetSdkVersion 33
1012

1113
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
1214

@@ -17,6 +19,19 @@ android {
1719
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
1820
}
1921
}
22+
23+
compileOptions {
24+
sourceCompatibility 17
25+
targetCompatibility 17
26+
}
27+
28+
publishing {
29+
singleVariant('release') {
30+
withJavadocJar()
31+
withSourcesJar()
32+
}
33+
}
34+
2035
namespace 'com.anychart'
2136
}
2237

@@ -28,27 +43,3 @@ dependencies {
2843
implementation 'androidx.appcompat:appcompat:1.6.1'
2944
testImplementation 'junit:junit:4.13.2'
3045
}
31-
32-
// build a jar with source files
33-
task sourcesJar(type: Jar) {
34-
from android.sourceSets.main.java.srcDirs
35-
archiveClassifier = 'sources'
36-
}
37-
38-
task javadoc(type: Javadoc) {
39-
failOnError false
40-
source = android.sourceSets.main.java.sourceFiles
41-
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
42-
classpath += configurations.implementation
43-
}
44-
45-
// build a jar with javadoc
46-
task javadocJar(type: Jar, dependsOn: javadoc) {
47-
archiveClassifier = 'javadoc'
48-
from javadoc.destinationDir
49-
}
50-
51-
artifacts {
52-
archives sourcesJar
53-
archives javadocJar
54-
}

build.gradle

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ buildscript {
66
mavenCentral()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:8.0.2'
10-
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
9+
classpath 'com.android.tools.build:gradle:8.1.0'
1110

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

jitpack.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
before_install:
2+
- sdk install java 17.0.6-open
3+
- sdk use java 17.0.6-open
4+
jdk:
5+
- openjdk17

sample/build.gradle

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 34
5-
buildToolsVersion "34.0.0"
4+
compileSdk 33
5+
66
defaultConfig {
77
applicationId "com.anychart.anychart"
88
minSdkVersion 19
9-
targetSdkVersion 34
9+
targetSdkVersion 33
1010
versionCode 8
1111
versionName "1.5"
1212
multiDexEnabled true
@@ -28,6 +28,10 @@ android {
2828
}
2929
}
3030
}
31+
compileOptions {
32+
sourceCompatibility 17
33+
targetCompatibility 17
34+
}
3135
namespace 'com.anychart.sample'
3236
}
3337

@@ -39,7 +43,7 @@ dependencies {
3943
implementation project(":anychart")
4044
implementation 'androidx.appcompat:appcompat:1.6.1'
4145
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
42-
implementation 'androidx.recyclerview:recyclerview:1.3.0'
46+
implementation 'androidx.recyclerview:recyclerview:1.3.1'
4347
implementation 'androidx.cardview:cardview:1.0.0'
4448
testImplementation 'junit:junit:4.13.2'
4549
implementation 'androidx.annotation:annotation:1.6.0'

0 commit comments

Comments
 (0)