update to gradle 7.4.2
This commit is contained in:
parent
337e1c19c0
commit
120042132b
8 changed files with 24 additions and 26 deletions
|
@ -2,4 +2,5 @@ group = org.xbib
|
|||
name = archive
|
||||
version = 1.1.0
|
||||
|
||||
gradle.wrapper.version = 7.3.2
|
||||
org.gradle.warning.mode = all
|
||||
gradle.wrapper.version = 7.4.2
|
||||
|
|
|
@ -21,19 +21,6 @@ jar {
|
|||
}
|
||||
}
|
||||
|
||||
task sourcesJar(type: Jar, dependsOn: classes) {
|
||||
classifier 'sources'
|
||||
from sourceSets.main.allSource
|
||||
}
|
||||
|
||||
task javadocJar(type: Jar, dependsOn: javadoc) {
|
||||
classifier 'javadoc'
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives sourcesJar, javadocJar
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
options.compilerArgs << '-Xlint:all,-fallthrough'
|
||||
}
|
||||
|
|
|
@ -5,8 +5,6 @@ publishing {
|
|||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
from components.java
|
||||
artifact sourcesJar
|
||||
artifact javadocJar
|
||||
pom {
|
||||
name = project.name
|
||||
description = rootProject.ext.description
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
|
||||
def junitVersion = project.hasProperty('junit.version')?project.property('junit.version'):'5.6.2'
|
||||
def hamcrestVersion = project.hasProperty('hamcrest.version')?project.property('hamcrest.version'):'2.2'
|
||||
|
||||
dependencies {
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-params:${junitVersion}"
|
||||
testImplementation "org.hamcrest:hamcrest-library:${hamcrestVersion}"
|
||||
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
|
||||
testImplementation libs.junit.jupiter.api
|
||||
testImplementation libs.junit.jupiter.params
|
||||
testImplementation libs.hamcrest
|
||||
testRuntimeOnly libs.junit.jupiter.engine
|
||||
}
|
||||
|
||||
test {
|
||||
|
|
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,5 +1,5 @@
|
|||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.2-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
|
|
@ -9,7 +9,7 @@ public class ZipTest {
|
|||
@Test
|
||||
public void testZip() throws Exception {
|
||||
InputStream in = getClass().getResourceAsStream("test.zip");
|
||||
ZipArchiveInputStream z = new ZipArchiveInputStream(in);
|
||||
ZipArchiveInputStream<ZipArchiveEntry> z = new ZipArchiveInputStream<>(in);
|
||||
byte[] buffer = new byte[1024];
|
||||
long total = 0L;
|
||||
while ((z.getNextEntry()) != null) {
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
dependencyResolutionManagement {
|
||||
versionCatalogs {
|
||||
libs {
|
||||
version('gradle', '7.4.2')
|
||||
version('junit', '5.8.2')
|
||||
library('junit-jupiter-api', 'org.junit.jupiter', 'junit-jupiter-api').versionRef('junit')
|
||||
library('junit-jupiter-params', 'org.junit.jupiter', 'junit-jupiter-params').versionRef('junit')
|
||||
library('junit-jupiter-engine', 'org.junit.jupiter', 'junit-jupiter-engine').versionRef('junit')
|
||||
library('junit4', 'junit:junit:4.13.2')
|
||||
library('hamcrest', 'org.hamcrest:hamcrest-library:2.2')
|
||||
plugin('publish', 'com.gradle.plugin-publish').version('0.18.0')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
include 'io-compress-bgzf'
|
||||
include 'io-compress-bzip2'
|
||||
include 'io-compress-lzf'
|
||||
|
@ -10,4 +25,4 @@ include 'io-archive-dump'
|
|||
include 'io-archive-jar'
|
||||
include 'io-archive-tar'
|
||||
include 'io-archive-zip'
|
||||
include 'io-codec'
|
||||
include 'io-codec'
|
||||
|
|
Loading…
Reference in a new issue