Skip to content

Commit 788299c

Browse files
committed
Migrate to new gradle api
1 parent 4cb57e2 commit 788299c

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ plugins {
1818
subprojects {
1919
tasks.withType<KotlinCompile>().configureEach {
2020
compilerOptions {
21-
allWarningsAsErrors.set(true)
22-
progressiveMode.set(true)
23-
jvmTarget.set(JvmTarget.JVM_11)
21+
allWarningsAsErrors = true
22+
progressiveMode = true
23+
jvmTarget = JvmTarget.JVM_11
2424
}
2525
if ((this@subprojects.name != "sample")) {
26-
explicitApiMode.set(ExplicitApiMode.Strict)
26+
explicitApiMode = ExplicitApiMode.Strict
2727
}
2828
}
2929

quickie/build.gradle.kts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,18 @@ group = "io.github.g00fy2.quickie"
4747
version = libs.versions.quickie.get()
4848

4949
tasks.register<Jar>("androidJavadocJar") {
50-
archiveClassifier.set("javadoc")
51-
from("$buildDir/dokka/javadoc")
50+
archiveClassifier = "javadoc"
51+
from(layout.buildDirectory.dir("dokka/javadoc"))
5252
dependsOn("dokkaJavadoc")
5353
}
5454

5555
tasks.register<Jar>("androidBundledSourcesJar") {
56-
archiveClassifier.set("sources")
56+
archiveClassifier = "sources"
5757
from(android.sourceSets.getByName("main").java.srcDirs, android.sourceSets.getByName("bundled").java.srcDirs)
5858
}
5959

6060
tasks.register<Jar>("androidUnbundledSourcesJar") {
61-
archiveClassifier.set("sources")
61+
archiveClassifier = "sources"
6262
from(android.sourceSets.getByName("main").java.srcDirs, android.sourceSets.getByName("unbundled").java.srcDirs)
6363
}
6464

@@ -100,26 +100,26 @@ fun MavenPublication.commonConfig(flavor: String) {
100100
artifact(tasks.named("androidJavadocJar"))
101101
artifact(tasks.named("android${flavor.replaceFirstChar { it.titlecase() }}SourcesJar"))
102102
pom {
103-
name.set("quickie-$flavor")
104-
description.set("Android QR code scanning library")
105-
url.set("https://github.com/G00fY2/quickie")
103+
name = "quickie-$flavor"
104+
description = "Android QR code scanning library"
105+
url = "https://github.com/G00fY2/quickie"
106106
licenses {
107107
license {
108-
name.set("MIT License")
109-
url.set("https://opensource.org/licenses/MIT")
108+
name = "MIT License"
109+
url = "https://opensource.org/licenses/MIT"
110110
}
111111
}
112112
developers {
113113
developer {
114-
id.set("g00fy2")
115-
name.set("Thomas Wirth")
116-
email.set("[email protected]")
114+
id = "g00fy2"
115+
name = "Thomas Wirth"
116+
117117
}
118118
}
119119
scm {
120-
connection.set("https://github.com/G00fY2/quickie.git")
121-
developerConnection.set("https://github.com/G00fY2/quickie.git")
122-
url.set("https://github.com/G00fY2/quickie")
120+
connection = "https://github.com/G00fY2/quickie.git"
121+
developerConnection = "https://github.com/G00fY2/quickie.git"
122+
url = "https://github.com/G00fY2/quickie"
123123
}
124124
}
125125
}

0 commit comments

Comments
 (0)