Skip to content

Commit d0a3189

Browse files
author
Piotr Zawadzki
committed
Remove Bintray support as we cannot upload to JCenter anyway.
Also, Update Gradle/AGP and made sure they produce the same artifacts as before.
1 parent 668eec4 commit d0a3189

File tree

4 files changed

+17
-82
lines changed

4 files changed

+17
-82
lines changed

build.gradle

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,27 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4-
ext.KOTLIN_VERSION = '1.3.41'
5-
ext.ANDROID_GRADLE_PLUGIN_VERSION = '3.5.4'
6-
ext.DOKKA_VERSION = '0.9.17'
7-
ext.BINTRAY_VERSION = '1.8.4'
4+
ext.KOTLIN_VERSION = '1.5.21'
5+
ext.ANDROID_GRADLE_PLUGIN_VERSION = '7.0.1'
6+
ext.DOKKA_VERSION = '1.5.0'
87
repositories {
98
google()
10-
jcenter()
119
maven {
1210
url 'https://dl.bintray.com/kotlin/kotlin-eap'
1311
}
12+
mavenCentral()
1413
}
1514
dependencies {
1615
classpath "com.android.tools.build:gradle:$ANDROID_GRADLE_PLUGIN_VERSION"
1716
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
18-
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:$DOKKA_VERSION"
19-
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$BINTRAY_VERSION"
17+
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$DOKKA_VERSION"
2018
}
2119
}
2220

2321
allprojects {
2422
repositories {
2523
google()
26-
jcenter()
24+
mavenCentral()
2725
}
2826
}
2927

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

xrunner-library/bintrayv1.gradle

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

xrunner-library/build.gradle

Lines changed: 10 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
3-
apply plugin: 'org.jetbrains.dokka-android'
3+
apply plugin: 'org.jetbrains.dokka'
44
apply plugin: 'maven-publish'
55

66
apply from: '../ktlint.gradle'
@@ -30,30 +30,6 @@ dependencies {
3030
implementation "de.jodamob.android:SuperReflect:$SUPER_REFLEKT_VERSION"
3131
}
3232

33-
dokka {
34-
outputDirectory = "$rootDir/docs"
35-
}
36-
37-
task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaAndroidTask) {
38-
delete "$buildDir/docs"
39-
40-
outputFormat = 'javadoc'
41-
outputDirectory = "$buildDir/docs"
42-
43-
externalDocumentationLink {
44-
url = new URL("https://developer.android.com/reference/")
45-
}
46-
47-
// Always recreate documentation
48-
outputs.upToDateWhen { return false }
49-
}
50-
51-
afterEvaluate {
52-
if (project.hasProperty("javadocJar")) {
53-
tasks.javadocJar.dependsOn dokkaJavadoc
54-
}
55-
}
56-
5733
ext {
5834
bintrayRepo = 'maven'
5935
bintrayName = 'android-test-xrunner'
@@ -74,28 +50,22 @@ ext {
7450
allLicenses = ["Apache-2.0"]
7551
}
7652

77-
78-
tasks.withType(Javadoc) {
79-
excludes = ['**/*.kt']
80-
}
81-
8253
task sourcesJar(type: Jar) {
8354
classifier = 'sources'
8455
from android.sourceSets.main.java.srcDirs
8556
}
8657

87-
task javadoc(type: Javadoc) {
88-
source = android.sourceSets.main.java.srcDirs
89-
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
58+
dokkaJavadoc.configure {
59+
dokkaSourceSets {
60+
named("main") {
61+
noAndroidSdkLink.set(false)
62+
}
63+
}
9064
}
9165

92-
task javadocJar(type: Jar, dependsOn: javadoc) {
93-
94-
// Always recreate documentation
95-
outputs.upToDateWhen { return false }
96-
66+
task javadocJar(type: Jar, dependsOn: dokkaJavadoc) {
9767
classifier = 'javadoc'
98-
from new File("$buildDir/docs")
68+
from "$buildDir/dokka/javadoc"
9969
}
10070

10171
publishing {
@@ -108,6 +78,7 @@ publishing {
10878

10979
groupId publishedGroupId
11080
artifactId artifact
81+
version libraryVersion
11182

11283
pom {
11384
packaging 'aar'
@@ -148,7 +119,5 @@ publishing {
148119
}
149120
}
150121
}
151-
// Bintray Upload
152-
apply from: 'bintrayv1.gradle'
153122

154123
publishToMavenLocal.dependsOn 'assembleRelease'

0 commit comments

Comments
 (0)