-
Notifications
You must be signed in to change notification settings - Fork 19
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
Update to Gradle 8.10 #140
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ plugins { | |
id 'application' | ||
id 'groovy' | ||
id 'org.grails.grails-web' | ||
id 'org.grails.plugins.views-json' | ||
//id 'org.grails.plugins.views-json' error loading when following documentation and not required for test | ||
} | ||
|
||
group = 'pubsub.demo' | ||
|
@@ -30,12 +30,14 @@ dependencies { | |
implementation 'org.grails:grails-web-boot' | ||
|
||
implementation 'org.grails.plugins:hibernate5' | ||
implementation 'org.grails.plugins:views-json' | ||
implementation libs.grails.views.json | ||
implementation libs.grails.views.json.templates | ||
|
||
implementation 'org.springframework.boot:spring-boot-autoconfigure' | ||
implementation 'org.springframework.boot:spring-boot-starter' | ||
implementation 'org.springframework.boot:spring-boot-starter-logging' | ||
implementation 'org.springframework.boot:spring-boot-starter-tomcat' | ||
implementation libs.micronaut.serde.jackson | ||
|
||
runtimeOnly 'com.h2database:h2' | ||
runtimeOnly 'org.apache.tomcat:tomcat-jdbc' | ||
|
@@ -48,4 +50,17 @@ dependencies { | |
// Don't need groovydoc for example project | ||
tasks.named('groovydoc') { | ||
enabled = false | ||
} | ||
} | ||
|
||
bootJar { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To work around duplicates that exist during the build. These were new after upgrade to gradle 8.10, but DuplicatesStrategy is set in other Grails projects. |
||
duplicatesStrategy = DuplicatesStrategy.INCLUDE | ||
} | ||
|
||
distTar { | ||
duplicatesStrategy = DuplicatesStrategy.INCLUDE | ||
} | ||
|
||
distZip { | ||
duplicatesStrategy = DuplicatesStrategy.INCLUDE | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A number of dependencies were still pulling in org.codehaus.groovy at the time.