File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,16 +39,14 @@ publishing {
3939 publications.configureEach {
4040 this as MavenPublication
4141 if (name == " pluginMaven" ) {
42- artifact(
43- tasks.register(" emptySources" , Jar ::class .java) {
44- archiveClassifier = " sources"
45- },
46- )
47- artifact(
48- tasks.register(" emptyDocs" , Jar ::class .java) {
49- archiveClassifier = " javadoc"
50- },
51- )
42+ val emptySources by tasks.registering(Jar ::class ) {
43+ archiveClassifier = " sources"
44+ }
45+ val emptyDocs by tasks.registering(Jar ::class ) {
46+ archiveClassifier = " javadoc"
47+ }
48+ artifact(emptySources)
49+ artifact(emptyDocs)
5250
5351 groupId = project.rootProject.group.toString()
5452 version = project.rootProject.version.toString()
Original file line number Diff line number Diff line change 11pluginManagement {
2- listOf (repositories, dependencyResolutionManagement.repositories).forEach {
2+ listOf (
3+ repositories,
4+ dependencyResolutionManagement.repositories,
5+ ).forEach {
36 it.apply {
47 mavenCentral()
5- gradlePluginPortal()
68 }
79 }
810}
You can’t perform that action at this time.
0 commit comments