Skip to content

Commit ec5475d

Browse files
committed
Standardize on rewrite.build.language-library
1 parent acb5179 commit ec5475d

File tree

1 file changed

+0
-61
lines changed

1 file changed

+0
-61
lines changed

rewrite-csharp/build.gradle.kts

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -20,64 +20,3 @@ dependencies {
2020

2121
testRuntimeOnly("org.openrewrite:rewrite-java-17")
2222
}
23-
24-
// We don't care about publishing javadocs anywhere, so don't waste time building them
25-
tasks.withType<Javadoc>().configureEach {
26-
enabled = false
27-
}
28-
29-
tasks.named<Jar>("sourcesJar") {
30-
enabled = false
31-
}
32-
33-
tasks.named<Jar>("javadocJar") {
34-
enabled = false
35-
}
36-
37-
val emptySourceJar = tasks.create<Jar>("emptySourceJar") {
38-
file("README.md")
39-
archiveClassifier.set("sources")
40-
}
41-
42-
val emptyJavadocJar = tasks.create<Jar>("emptyJavadocJar") {
43-
file("README.md")
44-
archiveClassifier.set("javadoc")
45-
}
46-
47-
publishing {
48-
publications.named<MavenPublication>("nebula") {
49-
artifactId = project.name
50-
description = project.description
51-
52-
artifacts.clear() // remove the regular JAR
53-
// Empty JARs are OK: https://central.sonatype.org/publish/requirements/#supply-javadoc-and-sources
54-
artifact(tasks.named("jar"))
55-
artifact(emptySourceJar)
56-
artifact(emptyJavadocJar)
57-
58-
pom {
59-
name.set(project.name)
60-
description.set(project.description)
61-
url.set("https://moderne.io")
62-
licenses {
63-
license {
64-
name.set("Creative Commons Attribution-NonCommercial 4.0")
65-
url.set("https://creativecommons.org/licenses/by-nc-nd/4.0/deed.en")
66-
}
67-
}
68-
developers {
69-
developer {
70-
name.set("Team Moderne")
71-
email.set("[email protected]")
72-
organization.set("Moderne, Inc.")
73-
organizationUrl.set("https://moderne.io")
74-
}
75-
}
76-
scm {
77-
connection.set("scm:git:git://github.com/openrewrite/rewrite-csharp.git")
78-
developerConnection.set("scm:git:ssh://github.com:openrewrite/rewrite-csharp.git")
79-
url.set("https://github.com/openrewrite/rewrite-csharp/tree/main")
80-
}
81-
}
82-
}
83-
}

0 commit comments

Comments
 (0)