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

chore(deps): update dependency gradle to v5 #1501

Merged
merged 4 commits into from May 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions .travis.yml
Expand Up @@ -8,13 +8,13 @@ matrix:
jdk: openjdk8
- os: osx
osx_image: xcode9.2 # OSX 10.12, Oracle Java 8
script: ./gradlew -u -S --no-daemon --no-parallel build # skip coveralls on MacOS
script: ./gradlew -S --no-daemon --no-parallel build # skip coveralls on MacOS
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gradle 5 removed the no upward option


# The 'build' task runs most things, including test, check, & static analysis
install: true
script:
- ./gradlew -u -S --no-daemon --no-parallel build jacocoAggregateReport coveralls
- ./gradlew -u -S --no-daemon --no-parallel :npm_run_lint-js
- ./gradlew -S --no-daemon --no-parallel build jacocoAggregateReport coveralls
- ./gradlew -S --no-daemon --no-parallel :npm_run_lint-js

cache:
directories:
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Expand Up @@ -6,7 +6,7 @@ install:
- gradlew.bat --version
# The 'build' task runs most things, including test, check, & static analysis
build: off
test_script: gradlew.bat -u -S --no-daemon --no-parallel build
test_script: gradlew.bat -S --no-daemon --no-parallel build
cache:
- C:\Users\appveyor\.npm
- C:\Users\appveyor\.gradle
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -6,7 +6,7 @@ plugins {
id 'net.researchgate.release' version '2.7.0'
// Records all tasks in task graph, generates `build/reports/visteg.dot`
// dot file can be converted to an image using graphviz. `dot -Tsvg -O -v visteg.dot`
id 'cz.malohlava' version '1.0.3'
id 'cz.malohlava.visteg' version '1.0.5'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated graphviz plugin supports Gradle 5 tasks


// Sub project plugins
id 'com.github.sherter.google-java-format' version '0.8' apply false
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Expand Up @@ -119,3 +119,4 @@ whatwgFetchPolyfillVersion=3.0.0

# gradle settings
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx2048M -XX\:MaxHeapSize\=32g
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-bin.zip
distributionSha256Sum=8626cbf206b4e201ade7b87779090690447054bc93f052954c78480fa6ed186e
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip
distributionSha256Sum=7bdbad1e4f54f13c8a78abc00c26d44dd8709d4aedb704d913fb1bb78ac025dc
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
13 changes: 3 additions & 10 deletions uPortal-content/uPortal-content-portlet/build.gradle
@@ -1,7 +1,6 @@
description = "Apereo uPortal Portlet Support"

ext {
// Solution for JPA Modelgen based on http://stackoverflow.com/a/23218255/1651116
generatedSourcesDir = file("${buildDir}/generated-sources/javac/main/java")
}

Expand All @@ -10,7 +9,7 @@ dependencies {
compile project(':uPortal-rdbm')

compileOnly "org.apache.portals.pluto:pluto-container-api:${plutoVersion}"
compileOnly "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}" // Required for javac -s
annotationProcessor "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}"
compileOnly "${portletApiDependency}"
compileOnly "${servletApiDependency}"

Expand All @@ -32,12 +31,6 @@ sourceSets {
}
}

// These are the only modifications to build process that are required.
compileJava {
doFirst {
// Generated sources directory should be present & empty before compilation
generatedSourcesDir.deleteDir()
generatedSourcesDir.mkdirs()
}
options.compilerArgs += ['-s', generatedSourcesDir]
tasks.withType(JavaCompile) {
options.annotationProcessorGeneratedSourcesDirectory = file(generatedSourcesDir)
}
13 changes: 3 additions & 10 deletions uPortal-events/build.gradle
@@ -1,7 +1,6 @@
description = "Apereo uPortal Events"

ext {
// Solution for JPA Modelgen based on http://stackoverflow.com/a/23218255/1651116
generatedSourcesDir = file("${buildDir}/generated-sources/javac/main/java")
}

Expand All @@ -15,7 +14,7 @@ dependencies {
compile "org.apache.httpcomponents:httpclient:${httpclientVersion}"

compileOnly "org.apache.portals.pluto:pluto-container-api:${plutoVersion}"
compileOnly "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}" // Required for javac -s
annotationProcessor "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}"
compileOnly "${portletApiDependency}"
compileOnly "${servletApiDependency}"
}
Expand All @@ -35,12 +34,6 @@ sourceSets {
}
}

// These are the only modifications to build process that are required.
compileJava {
doFirst {
// Generated sources directory should be present & empty before compilation
generatedSourcesDir.deleteDir()
generatedSourcesDir.mkdirs()
}
options.compilerArgs += ['-s', generatedSourcesDir]
tasks.withType(JavaCompile) {
options.annotationProcessorGeneratedSourcesDirectory = file(generatedSourcesDir)
}
13 changes: 3 additions & 10 deletions uPortal-groups/uPortal-groups-pags/build.gradle
@@ -1,7 +1,6 @@
description = "Apereo uPortal Groups PAGS"

ext {
// Solution for JPA Modelgen based on http://stackoverflow.com/a/23218255/1651116
generatedSourcesDir = file("${buildDir}/generated-sources/javac/main/java")
}

Expand All @@ -15,7 +14,7 @@ dependencies {
compile "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
compile "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"

compileOnly "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}" // Required for javac -s
annotationProcessor "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}"
compileOnly "${servletApiDependency}"
}

Expand All @@ -34,12 +33,6 @@ sourceSets {
}
}

// These are the only modifications to build process that are required.
compileJava {
doFirst {
// Generated sources directory should be present & empty before compilation
generatedSourcesDir.deleteDir()
generatedSourcesDir.mkdirs()
}
options.compilerArgs += ['-s', generatedSourcesDir]
tasks.withType(JavaCompile) {
options.annotationProcessorGeneratedSourcesDirectory = file(generatedSourcesDir)
}
14 changes: 3 additions & 11 deletions uPortal-i18n/build.gradle
@@ -1,7 +1,6 @@
description = "Apereo uPortal i18n"

ext {
// Solution for JPA Modelgen based on http://stackoverflow.com/a/23218255/1651116
generatedSourcesDir = file("${buildDir}/generated-sources/javac/main/java")
}

Expand All @@ -10,7 +9,7 @@ dependencies {

compile "org.slf4j:log4j-over-slf4j:${slf4jVersion}"

compileOnly "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}" // Required for javac -s
annotationProcessor "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}"
compileOnly "${servletApiDependency}"
}

Expand All @@ -29,13 +28,6 @@ sourceSets {
}
}

// These are the only modifications to build process that are required.
compileJava {
doFirst {
// Generated sources directory should be present & empty before compilation
generatedSourcesDir.deleteDir()
generatedSourcesDir.mkdirs()
}
options.compilerArgs += ['-s', generatedSourcesDir]
tasks.withType(JavaCompile) {
options.annotationProcessorGeneratedSourcesDirectory = file(generatedSourcesDir)
}

13 changes: 3 additions & 10 deletions uPortal-layout/uPortal-layout-core/build.gradle
@@ -1,7 +1,6 @@
description = "Apereo uPortal Layout"

ext {
// Solution for JPA Modelgen based on http://stackoverflow.com/a/23218255/1651116
generatedSourcesDir = file("${buildDir}/generated-sources/javac/main/java")
}

Expand All @@ -19,7 +18,7 @@ dependencies {
testCompile "${servletApiDependency}"

compileOnly "org.apache.portals.pluto:pluto-container-api:${plutoVersion}"
compileOnly "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}" // Required for javac -s
annotationProcessor "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}"
compileOnly "${servletApiDependency}"
}

Expand All @@ -38,12 +37,6 @@ sourceSets {
}
}

// These are the only modifications to build process that are required.
compileJava {
doFirst {
// Generated sources directory should be present & empty before compilation
generatedSourcesDir.deleteDir()
generatedSourcesDir.mkdirs()
}
options.compilerArgs += ['-s', generatedSourcesDir]
tasks.withType(JavaCompile) {
options.annotationProcessorGeneratedSourcesDirectory = file(generatedSourcesDir)
}
13 changes: 3 additions & 10 deletions uPortal-persondir/build.gradle
@@ -1,14 +1,13 @@
description = "Apereo uPortal Person Directory"

ext {
// Solution for JPA Modelgen based on http://stackoverflow.com/a/23218255/1651116
generatedSourcesDir = file("${buildDir}/generated-sources/javac/main/java")
}

dependencies {
compile project(':uPortal-security:uPortal-security-core')

compileOnly "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}" // Required for javac -s
annotationProcessor "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}"
compileOnly "${portletApiDependency}"
compileOnly "${servletApiDependency}"

Expand All @@ -31,12 +30,6 @@ sourceSets {
}
}

// These are the only modifications to build process that are required.
compileJava {
doFirst {
// Generated sources directory should be present & empty before compilation
generatedSourcesDir.deleteDir()
generatedSourcesDir.mkdirs()
}
options.compilerArgs += ['-s', generatedSourcesDir]
tasks.withType(JavaCompile) {
options.annotationProcessorGeneratedSourcesDirectory = file(generatedSourcesDir)
}
13 changes: 3 additions & 10 deletions uPortal-security/uPortal-security-permissions/build.gradle
@@ -1,7 +1,6 @@
description = "Apereo uPortal Security Permissions"

ext {
// Solution for JPA Modelgen based on http://stackoverflow.com/a/23218255/1651116
generatedSourcesDir = file("${buildDir}/generated-sources/javac/main/java")
}

Expand All @@ -12,7 +11,7 @@ dependencies {
compile project(':uPortal-security:uPortal-security-core')
compile project(':uPortal-spring')

compileOnly "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}" // Required for javac -s
annotationProcessor "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}"
}

/*
Expand All @@ -30,12 +29,6 @@ sourceSets {
}
}

// These are the only modifications to build process that are required.
compileJava {
doFirst {
// Generated sources directory should be present & empty before compilation
generatedSourcesDir.deleteDir()
generatedSourcesDir.mkdirs()
}
options.compilerArgs += ['-s', generatedSourcesDir]
tasks.withType(JavaCompile) {
options.annotationProcessorGeneratedSourcesDirectory = file(generatedSourcesDir)
}
15 changes: 4 additions & 11 deletions uPortal-tenants/build.gradle
@@ -1,7 +1,6 @@
description = "Apereo uPortal Tenants"

ext {
// Solution for JPA Modelgen based on http://stackoverflow.com/a/23218255/1651116
generatedSourcesDir = file("${buildDir}/generated-sources/javac/main/java")
}

Expand All @@ -11,7 +10,7 @@ dependencies {

compile "javax.mail:mail:${javaxMailVersion}"

compileOnly "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}" // Required for javac -s
annotationProcessor "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}" // Required for javac -s
compileOnly "${servletApiDependency}"
}

Expand All @@ -30,12 +29,6 @@ sourceSets {
}
}

// These are the only modifications to build process that are required.
compileJava {
doFirst {
// Generated sources directory should be present & empty before compilation
generatedSourcesDir.deleteDir()
generatedSourcesDir.mkdirs()
}
options.compilerArgs += ['-s', generatedSourcesDir]
}
tasks.withType(JavaCompile) {
options.annotationProcessorGeneratedSourcesDirectory = file(generatedSourcesDir)
}
13 changes: 3 additions & 10 deletions uPortal-tools/build.gradle
@@ -1,7 +1,6 @@
description = "Apereo uPortal Tools"

ext {
// Solution for JPA Modelgen based on http://stackoverflow.com/a/23218255/1651116
generatedSourcesDir = file("${buildDir}/generated-sources/javac/main/java")
}

Expand All @@ -15,7 +14,7 @@ dependencies {
compile "org.apache.ant:ant:${antVersion}"
compile "org.codehaus.groovy:groovy:${groovyVersion}"

compileOnly "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}" // Required for javac -s
annotationProcessor "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}" // Required for javac -s
compileOnly "${servletApiDependency}"
}

Expand All @@ -34,12 +33,6 @@ sourceSets {
}
}

// These are the only modifications to build process that are required.
compileJava {
doFirst {
// Generated sources directory should be present & empty before compilation
generatedSourcesDir.deleteDir()
generatedSourcesDir.mkdirs()
}
options.compilerArgs += ['-s', generatedSourcesDir]
tasks.withType(JavaCompile) {
options.annotationProcessorGeneratedSourcesDirectory = file(generatedSourcesDir)
}
13 changes: 3 additions & 10 deletions uPortal-utils/uPortal-utils-core/build.gradle
@@ -1,7 +1,6 @@
description = "Apereo uPortal Utilities"

ext {
// Solution for JPA Modelgen based on http://stackoverflow.com/a/23218255/1651116
generatedSourcesDir = file("${buildDir}/generated-sources/javac/main/java")
}

Expand Down Expand Up @@ -72,7 +71,7 @@ dependencies {
testCompile "${servletApiDependency}"

compileOnly "org.apache.portals.pluto:pluto-container-api:${plutoVersion}"
compileOnly "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}" // Required for javac -s
annotationProcessor "org.hibernate:hibernate-jpamodelgen:${hibernateJpamodelgenVersion}"
compileOnly "${portletApiDependency}"
compileOnly "${servletApiDependency}"
}
Expand All @@ -92,12 +91,6 @@ sourceSets {
}
}

// These are the only modifications to build process that are required.
compileJava {
doFirst {
// Generated sources directory should be present & empty before compilation
generatedSourcesDir.deleteDir()
generatedSourcesDir.mkdirs()
}
options.compilerArgs += ['-s', generatedSourcesDir]
tasks.withType(JavaCompile) {
options.annotationProcessorGeneratedSourcesDirectory = file(generatedSourcesDir)
}