diff options
author | Thomas <> | 2021-03-26 09:54:41 +0100 |
---|---|---|
committer | Thomas <> | 2021-03-26 09:54:41 +0100 |
commit | 510fca957d9cf00260efe7ed78a663d46c69adb7 (patch) | |
tree | 8129c4ab6ff144e28a02d0a8f443561ce8a5e52e /build.gradle | |
parent | b51e3b877fa7c8b930e63fd8e1317e34d7d4773e (diff) | |
download | pdf-as-4-510fca957d9cf00260efe7ed78a663d46c69adb7.tar.gz pdf-as-4-510fca957d9cf00260efe7ed78a663d46c69adb7.tar.bz2 pdf-as-4-510fca957d9cf00260efe7ed78a663d46c69adb7.zip |
update gradle build-process to wrapper 6.8.3
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 44 |
1 files changed, 27 insertions, 17 deletions
diff --git a/build.gradle b/build.gradle index f57f4555..f0975e01 100644 --- a/build.gradle +++ b/build.gradle @@ -9,16 +9,10 @@ buildscript { } } -/* -task wrapper(type: Wrapper) { - gradleVersion = '5.6.4' -} -*/ - allprojects { apply plugin: "com.github.ben-manes.versions" repositories { mavenCentral() } - version = '4.1.7-RC-0.0.4' + version = '4.1.7-RC-0.0.5' } configurations { @@ -50,9 +44,10 @@ task checkCVE { subprojects { - apply plugin: 'java' + apply plugin: 'java-library' apply plugin: 'eclipse' - apply plugin: 'maven' + apply plugin: 'maven-publish' + //apply plugin: 'maven' group = 'at.gv.egiz.pdfas' configurations { @@ -63,8 +58,8 @@ subprojects { repositories { mavenCentral() } dependencies { - testCompile 'junit:junit:4.8.2' - cveCheck 'org.owasp:dependency-check-ant:1.2.5' + testImplementation 'junit:junit:4.13.2' + cveCheck 'org.owasp:dependency-check-ant:6.1.3' } task sourcesJar(type: Jar, dependsOn: classes) { @@ -124,12 +119,27 @@ subprojects { checkCVELocal.dependsOn copyDepsLocal - uploadArchives { - repositories.mavenDeployer { - repository(url: project.releaseRepoUrl) - snapshotRepository(url: project.snapshotRepoUrl) - } - } + publishing { + publications { + myLibrary(MavenPublication) { + from components.java + } + } + + repositories { + maven { + name = 'egiz_repo' + url = version.endsWith('SNAPSHOT') ? project.snapshotRepoUrl : project.releaseRepoUrl + } + } + } + + //uploadArchives { + // repositories.mavenDeployer { + // repository(url: project.releaseRepoUrl) + // snapshotRepository(url: project.snapshotRepoUrl) + // } + //} task(internalRelease) { doLast { |