@@ -47,18 +47,18 @@ group = "io.github.g00fy2.quickie"
47
47
version = libs.versions.quickie.get()
48
48
49
49
tasks.register<Jar >(" androidJavadocJar" ) {
50
- archiveClassifier.set( " javadoc" )
51
- from(" $buildDir / dokka/javadoc" )
50
+ archiveClassifier = " javadoc"
51
+ from(layout.buildDirectory.dir( " dokka/javadoc" ) )
52
52
dependsOn(" dokkaJavadoc" )
53
53
}
54
54
55
55
tasks.register<Jar >(" androidBundledSourcesJar" ) {
56
- archiveClassifier.set( " sources" )
56
+ archiveClassifier = " sources"
57
57
from(android.sourceSets.getByName(" main" ).java.srcDirs, android.sourceSets.getByName(" bundled" ).java.srcDirs)
58
58
}
59
59
60
60
tasks.register<Jar >(" androidUnbundledSourcesJar" ) {
61
- archiveClassifier.set( " sources" )
61
+ archiveClassifier = " sources"
62
62
from(android.sourceSets.getByName(" main" ).java.srcDirs, android.sourceSets.getByName(" unbundled" ).java.srcDirs)
63
63
}
64
64
@@ -100,26 +100,26 @@ fun MavenPublication.commonConfig(flavor: String) {
100
100
artifact(tasks.named(" androidJavadocJar" ))
101
101
artifact(tasks.named(" android${flavor.replaceFirstChar { it.titlecase() }} SourcesJar" ))
102
102
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"
106
106
licenses {
107
107
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"
110
110
}
111
111
}
112
112
developers {
113
113
developer {
114
- id.set( " g00fy2" )
115
- name.set( " Thomas Wirth" )
116
-
114
+ id = " g00fy2"
115
+ name = " Thomas Wirth"
116
+
117
117
}
118
118
}
119
119
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"
123
123
}
124
124
}
125
125
}
0 commit comments