aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle44
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 {