Skip to content

Commit

Permalink
fix jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
magicprinc committed May 6, 2024
1 parent c9631e7 commit 8eeea3b
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 65 deletions.
20 changes: 12 additions & 8 deletions click-cayenne/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,19 @@ tasks.withType(JavaCompile).configureEach {
errorproneArgs = ["--illegal-access=warn"]
}
}
// https://docs.gradle.org/current/userguide/publishing_maven.html
publishing {
publications { // artifactId = folder name
maven(MavenPublication) {
from components.java
}
}
publishing {// https://docs.gradle.org/current/userguide/publishing_maven.html
publications {
maven(MavenPublication){// groupId in gradle.properties; artifactId == folder name
from components.java
suppressPomMetadataWarningsFor('runtimeElements')
}
}
}
jar {
from generatePomFileForMavenPublication {
rename('pom-default.xml', "META-INF/maven/${project.group}/${project.name}/pom.xml")
}
}
// https://docs.gradle.org/current/userguide/publishing_maven.html
java {
withSourcesJar()
// withJavadocJar()
Expand Down
21 changes: 13 additions & 8 deletions click-charts-examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,18 @@ configurations.configureEach { // .implementation // https://tomgregory.com/how
exclude group: "com.mchange", module: "c3p0"
exclude group: 'com.google.guava', module: 'listenablefuture'
}
// https://docs.gradle.org/current/userguide/publishing_maven.html
publishing {
publications { // artifactId = folder name
maven(MavenPublication) {
from components.java
}
}
publishing {// https://docs.gradle.org/current/userguide/publishing_maven.html
publications {
maven(MavenPublication){// groupId in gradle.properties; artifactId == folder name
from components.java
suppressPomMetadataWarningsFor('runtimeElements')
}
}
}
jar {
from generatePomFileForMavenPublication {
rename('pom-default.xml', "META-INF/maven/${project.group}/${project.name}/pom.xml")
}
}
java {
withSourcesJar()
Expand All @@ -88,7 +93,7 @@ test {
enableAssertions = true
maxHeapSize = "500m"

systemProperty("slf4j.detectLoggerNameMismatch", "true")
//systemProperty("slf4j.detectLoggerNameMismatch", "true")
systemProperty("file.encoding", "UTF-8")
systemProperty("user.language", "en")
Locale.setDefault(new Locale("en", "US"));
Expand Down
20 changes: 12 additions & 8 deletions click-charts/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,19 @@ tasks.withType(JavaCompile).configureEach {
errorproneArgs = ["--illegal-access=warn"]
}
}
// https://docs.gradle.org/current/userguide/publishing_maven.html
publishing {
publications { // artifactId = folder name
maven(MavenPublication) {
from components.java
}
}
publishing {// https://docs.gradle.org/current/userguide/publishing_maven.html
publications {
maven(MavenPublication){// groupId in gradle.properties; artifactId == folder name
from components.java
suppressPomMetadataWarningsFor('runtimeElements')
}
}
}
jar {
from generatePomFileForMavenPublication {
rename('pom-default.xml', "META-INF/maven/${project.group}/${project.name}/pom.xml")
}
}
// https://docs.gradle.org/current/userguide/publishing_maven.html
java {
withSourcesJar()
// withJavadocJar()
Expand Down
19 changes: 12 additions & 7 deletions click-extras/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,18 @@ tasks.withType(JavaCompile).configureEach {
errorproneArgs = ["--illegal-access=warn"]
}
}
// https://docs.gradle.org/current/userguide/publishing_maven.html
publishing {
publications { // artifactId == folder name
maven(MavenPublication) {
from components.java
}
}
publishing {// https://docs.gradle.org/current/userguide/publishing_maven.html
publications {
maven(MavenPublication){// groupId in gradle.properties; artifactId == folder name
from components.java
suppressPomMetadataWarningsFor('runtimeElements')
}
}
}
jar {
from generatePomFileForMavenPublication {
rename('pom-default.xml', "META-INF/maven/${project.group}/${project.name}/pom.xml")
}
}
java {
withSourcesJar()
Expand Down
22 changes: 12 additions & 10 deletions click-freemarker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,18 @@ tasks.withType(JavaCompile).configureEach {
errorproneArgs = ["--illegal-access=warn"]
}
}
// https://docs.gradle.org/current/userguide/publishing_maven.html
publishing {
publications { // artifactId == folder name
maven(MavenPublication) {
from components.java
}
}
publishing {// https://docs.gradle.org/current/userguide/publishing_maven.html
publications {
maven(MavenPublication){// groupId in gradle.properties; artifactId == folder name
from components.java
suppressPomMetadataWarningsFor('runtimeElements')
}
}
}
jar {
from generatePomFileForMavenPublication {
rename('pom-default.xml', "META-INF/maven/${project.group}/${project.name}/pom.xml")
}
}
java {
withSourcesJar()
Expand All @@ -56,11 +61,8 @@ dependencies {
implementation libs.bundles.spring

//*** TEST TEST TEST ***

testImplementation libs.bundles.junit

testRuntimeOnly 'org.slf4j:slf4j-simple:1.7.+'

testImplementation project(':click-mock')
}
configurations.configureEach { // .implementation // https://tomgregory.com/how-to-exclude-gradle-dependencies/
Expand Down
33 changes: 13 additions & 20 deletions click-mock/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ repositories {
mavenCentral()
}

javadoc {
options.encoding = 'UTF-8'
options.addBooleanOption('html5', true)
}

tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
options.compilerArgs.addAll(['-Xlint:all,-serial', '-parameters', '-g', '-Xmaxwarns', '999'])
Expand All @@ -34,13 +29,18 @@ tasks.withType(JavaCompile).configureEach {
errorproneArgs = ["--illegal-access=warn"]
}
}
// https://docs.gradle.org/current/userguide/publishing_maven.html
publishing {
publications { // artifactId = folder name
maven(MavenPublication) {
from components.java
}
}
publishing {// https://docs.gradle.org/current/userguide/publishing_maven.html
publications {
maven(MavenPublication){// groupId in gradle.properties; artifactId == folder name
from components.java
suppressPomMetadataWarningsFor('runtimeElements')
}
}
}
jar {
from generatePomFileForMavenPublication {
rename('pom-default.xml', "META-INF/maven/${project.group}/${project.name}/pom.xml")
}
}
java {
withSourcesJar()
Expand All @@ -58,18 +58,11 @@ dependencies {
// TEST

testImplementation libs.bundles.junit

testImplementation project(':click-velocity')

testRuntimeOnly 'org.slf4j:slf4j-simple:1.7.+'
}

idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
idea { module { downloadJavadoc = true; downloadSources = true } }

test {
useJUnit()
Expand Down
15 changes: 11 additions & 4 deletions click/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ tasks.withType(JavaCompile).configureEach {
errorproneArgs = ["--illegal-access=warn"]
}
}
// https://docs.gradle.org/current/userguide/publishing_maven.html
publishing {
publications { // artifactId == folder name
maven(MavenPublication) {

publishing {// https://docs.gradle.org/current/userguide/publishing_maven.html
publications {
maven(MavenPublication){// groupId in gradle.properties; artifactId == folder name
from components.java
suppressPomMetadataWarningsFor('runtimeElements')
}
}
}
Expand Down Expand Up @@ -119,6 +120,12 @@ tasks.named("sonarlintTest").configure {
}
}

jar {
from generatePomFileForMavenPublication {
rename('pom-default.xml', "META-INF/maven/${project.group}/${project.name}/pom.xml")
}
}

tasks.withType(AbstractArchiveTask).configureEach {
preserveFileTimestamps = false
reproducibleFileOrder = true
Expand Down

0 comments on commit 8eeea3b

Please sign in to comment.