Skip to content

Commit 1830676

Browse files
committed
AGP 8.6.1
1 parent 96023a4 commit 1830676

File tree

2 files changed

+27
-31
lines changed

2 files changed

+27
-31
lines changed

build.gradle

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,21 @@ plugins {
1818
}
1919

2020
dependencies {
21+
compileOnly gradleApi()
2122
//noinspection DependencyNotationArgument
22-
implementation libs.gradle.api
23+
implementation libs.android.gradle
2324
//noinspection DependencyNotationArgument
2425
implementation libs.annotations
2526
//noinspection DependencyNotationArgument
2627
implementation libs.bundles.http.components
27-
//noinspection DependencyNotationArgument
28-
implementation libs.gson
29-
compileOnly gradleApi()
3028

3129
testImplementation libs.junit
3230
//noinspection DependencyNotationArgument
3331
testImplementation libs.annotations
3432
testImplementation gradleTestKit()
3533
testImplementation(project)
3634
}
35+
3736
gradlePlugin {
3837
plugins {
3938
PublishingPlugin {
@@ -45,7 +44,6 @@ gradlePlugin {
4544
}
4645
}
4746

48-
4947
tasks.withType(Jar).configureEach {
5048
archiveBaseName.set(plugin_identifier)
5149
archiveVersion.set("${plugin_version}")
@@ -55,8 +53,7 @@ tasks.withType(Test).configureEach {
5553
useJUnitPlatform()
5654
}
5755

58-
//noinspection ConfigurationAvoidance
59-
task javadocs(type: Javadoc) {
56+
tasks.register('javadocs', Javadoc) {
6057
title = "${plugin_display_name} ${plugin_version} API"
6158
source = java.sourceSets.main.java.srcDirs
6259
destinationDir = project.file('/build/outputs/javadoc')
@@ -68,15 +65,14 @@ task javadocs(type: Javadoc) {
6865
failOnError false
6966
}
7067

71-
//noinspection ConfigurationAvoidance
72-
task javadocJar(type: Jar, dependsOn: javadoc) {
68+
tasks.register('javadocJar', Jar) {
69+
dependsOn javadoc
7370
dependsOn javadoc
7471
archiveClassifier.set('javadoc')
7572
from javadoc.destinationDir
7673
}
7774

78-
//noinspection ConfigurationAvoidance
79-
task sourcesJar(type: Jar) {
75+
tasks.register('sourcesJar', Jar) {
8076
from java.sourceSets.main.java.srcDirs
8177
archiveClassifier.set('sources')
8278
}

gradle/libs.versions.toml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
[versions]
2-
gradle_api = '8.6.0'
3-
gradle_publish = '1.2.2'
4-
plugin_version = '1.3.5'
5-
annotations = '23.0.0'
6-
httpcore = '4.4.16'
7-
httpclient = '4.5.14'
8-
httpmime = '4.5.14'
9-
junit = '5.8.2'
10-
gson = '2.10.1'
2+
android_gradle = '8.6.1'
3+
gradle_publish = '1.2.2'
4+
plugin_version = '1.3.5'
5+
annotations = '23.0.0'
6+
httpcore = '4.4.16'
7+
httpclient = '4.5.14'
8+
httpmime = '4.5.14'
9+
junit = '5.8.2'
10+
gson = '2.10.1'
1111

1212
[plugins]
13-
maven_publish = { id = "maven-publish" }
14-
gradle_plugin = { id = "org.gradle.java-gradle-plugin" }
15-
gradle_publish = { id = "com.gradle.plugin-publish", version.ref = "gradle_publish" }
13+
maven_publish = { id = "maven-publish" }
14+
gradle_plugin = { id = "org.gradle.java-gradle-plugin" }
15+
gradle_publish = { id = "com.gradle.plugin-publish", version.ref = "gradle_publish" }
1616

1717
# The plugin can be defined in other projects alike this:
1818
# agconnect_publishing = { id = "io.syslogic.agconnect.publishing", version.ref = "plugin_version" }
1919

2020
[libraries]
21-
gradle_api = { module = "com.android.tools.build:gradle-api", version.ref = "gradle_api" }
22-
annotations = { module = "org.jetbrains:annotations", version.ref = "annotations" }
23-
httpcore = { module = "org.apache.httpcomponents:httpcore", version.ref = "httpcore" }
24-
httpclient = { module = "org.apache.httpcomponents:httpclient", version.ref = "httpclient" }
25-
httpmime = { module = "org.apache.httpcomponents:httpmime", version.ref = "httpmime" }
26-
junit = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit" }
27-
gson = { module = "com.google.code.gson:gson", version.ref = "gson" }
21+
android_gradle = { module = "com.android.tools.build:gradle-api", version.ref = "android_gradle" }
22+
annotations = { module = "org.jetbrains:annotations", version.ref = "annotations" }
23+
httpcore = { module = "org.apache.httpcomponents:httpcore", version.ref = "httpcore" }
24+
httpclient = { module = "org.apache.httpcomponents:httpclient", version.ref = "httpclient" }
25+
httpmime = { module = "org.apache.httpcomponents:httpmime", version.ref = "httpmime" }
26+
junit = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit" }
27+
gson = { module = "com.google.code.gson:gson", version.ref = "gson" }
2828

2929
[bundles]
30-
http_components = ["httpcore", "httpclient", "httpmime"]
30+
http_components = ["httpcore", "httpclient", "httpmime", "gson"]

0 commit comments

Comments
 (0)