Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump gradle from 6.3 to 8.12.1 (fixes #187) #188

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 7 additions & 28 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ apply plugin: 'maven-publish'
apply plugin: 'signing'

group = 'org.dom4j'
archivesBaseName = 'dom4j'

sourceCompatibility = 1.8

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
Expand Down Expand Up @@ -40,36 +37,18 @@ dependencies {
)
}

sourceSets {
test {
compileClasspath += configurations.compileOnly
runtimeClasspath += configurations.compileOnly
}
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withJavadocJar()
withSourcesJar()
}

publishing {
publications {
mavenJava(MavenPublication) {
from components.java

artifact sourcesJar {
classifier "sources"
}

artifact javadocJar {
classifier "javadoc"
}

pom {
name = 'dom4j'
description = 'flexible XML framework for Java'
Expand Down Expand Up @@ -115,7 +94,7 @@ test {

jacocoTestReport {
reports {
xml.enabled true
xml.required = true
}
}

Expand All @@ -125,7 +104,7 @@ if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')
publishing {
repositories {
maven {
url 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
authentication {
basic(BasicAuthentication)
}
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 4 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Sat Apr 11 19:07:04 CEST 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading