Skip to content

Commit b3f77d5

Browse files
mdjastrzebskikrozniata
authored andcommitted
.
1 parent 95ef031 commit b3f77d5

2 files changed

Lines changed: 20 additions & 5 deletions

File tree

gradle-plugins/publish-to-maven-local.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ cd ./react
66

77
./gradlew build
88
./gradlew :brownfield:publishToMavenLocal
9+
./gradlew signing
10+

gradle-plugins/react/brownfield/build.gradle.kts

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ publishing {
8383
}
8484

8585
repositories {
86+
mavenLocal()
8687
maven {
8788
name = "MavenCentral"
8889
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") // Maven Central URL
@@ -101,11 +102,7 @@ val localProperties = Properties().apply {
101102
}
102103

103104
signing {
104-
useInMemoryPgpKeys(
105-
localProperties.getProperty("signingKey"), // GPG private key
106-
localProperties.getProperty("signingPassword") // Passphrase
107-
)
108-
sign(publishing.publications["mavenCentral"]) // Sign the Maven publication
105+
sign(publishing.publications["mavenCentral"])
109106
}
110107

111108
repositories {
@@ -126,3 +123,19 @@ tasks.named("detekt").configure {
126123
tasks.register("lint") {
127124
dependsOn(":ktlintFormat")
128125
}
126+
127+
java {
128+
withJavadocJar()
129+
withSourcesJar()
130+
}
131+
132+
tasks.javadoc {
133+
if (JavaVersion.current().isJava9Compatible) {
134+
(options as StandardJavadocDocletOptions).addBooleanOption("html5", true)
135+
}
136+
options {
137+
encoding = "UTF-8"
138+
source = "8"
139+
}
140+
}
141+

0 commit comments

Comments
 (0)