Skip to content

Commit

Permalink
upgraded Micronaut and Gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr committed Dec 7, 2023
1 parent b41265d commit 5b26cc8
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 53 deletions.
23 changes: 8 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -152,18 +152,20 @@ subprojects { Project subproject ->
apply plugin: 'groovy'
apply plugin: 'java-library'

micronaut {
importMicronautPlatorm = true
testRuntime 'spock'
}

dependencies {
annotationProcessor platform("io.micronaut:micronaut-bom:$micronautVersion")
api platform(project(':micronaut-aws-sdk-dependencies'))

annotationProcessor 'io.micronaut:micronaut-inject-java'

// Groovy
if (subproject.name.startsWith('micronaut-amazon-awssdk')) {
compileOnly "org.codehaus.groovy:groovy:$groovyVersion"
testImplementation "org.codehaus.groovy:groovy:$groovyVersion"
compileOnly "org.apache.groovy:groovy:$groovyVersion"
testImplementation "org.apace.groovy:groovy:$groovyVersion"
} else {
implementation "org.codehaus.groovy:groovy:$groovyVersion"
implementation "org.apache.groovy:groovy:$groovyVersion"
implementation micronautMigratedDependency('micronaut-runtime-groovy')
compileOnly 'io.micronaut:micronaut-inject-groovy'
}
Expand All @@ -172,22 +174,13 @@ subprojects { Project subproject ->
implementation 'io.micronaut:micronaut-runtime'


compileOnly 'io.micronaut:micronaut-inject-java'

testAnnotationProcessor platform("io.micronaut:micronaut-bom:$micronautVersion")
testAnnotationProcessor 'io.micronaut:micronaut-inject-java'

testImplementation platform("io.micronaut:micronaut-bom:$micronautVersion")
testImplementation 'io.micronaut:micronaut-inject-groovy'

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.1'

testImplementation("org.spockframework:spock-core:$spockVersion") {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
testImplementation 'cglib:cglib-nodep:3.2.0'
testImplementation 'org.objenesis:objenesis:1.2'

testCompileOnly 'com.agorapulse:remember:0.4.2'

Expand Down
13 changes: 3 additions & 10 deletions examples/local-server/local-server.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
apply plugin: "application"
apply plugin: "com.github.johnrengelman.shadow"
plugins {
id 'io.micronaut.minimal.application' version "$micronautGradlePluginVersion"
}

config {
publishing { enabled = false }
Expand All @@ -35,12 +36,4 @@ dependencies {
}


shadowJar {
mergeServiceFiles()
}

runShadow {
systemProperties 'micronaut.environments': 'dev'
}

mainClassName = "com.agorapulse.micronaut.http.examples.Application"
12 changes: 8 additions & 4 deletions examples/planets/planets.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
import com.amazonaws.services.lambda.model.Runtime
import jp.classmethod.aws.gradle.lambda.AWSLambdaMigrateFunctionTask

config {
publishing { enabled = false }
}

buildscript {
repositories {
maven {
Expand All @@ -33,9 +29,17 @@ buildscript {
}
}

plugins {
id 'io.micronaut.minimal.library' version "$micronautGradlePluginVersion"
}

apply from: '../gradle/lambda.gradle'
apply plugin: 'jp.classmethod.aws.lambda'

config {
publishing { enabled = false }
}

dependencies {
implementation project(':micronaut-aws-sdk-dynamodb')

Expand Down
12 changes: 8 additions & 4 deletions examples/spacecrafts/spacecrafts.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
import com.amazonaws.services.lambda.model.Runtime
import jp.classmethod.aws.gradle.lambda.AWSLambdaMigrateFunctionTask

config {
publishing { enabled = false }
}

buildscript {
repositories {
maven {
Expand All @@ -33,9 +29,17 @@ buildscript {
}
}

plugins {
id 'io.micronaut.minimal.library' version "$micronautGradlePluginVersion"
}

apply from: '../gradle/lambda.gradle'
apply plugin: 'jp.classmethod.aws.lambda'

config {
publishing { enabled = false }
}

dependencies {
implementation project(':micronaut-aws-sdk-dynamodb')

Expand Down
7 changes: 5 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@

slug=agorapulse/micronaut-aws-sdk
group=com.agorapulse
micronautVersion = 1.3.7
micronautVersion = 4.2.0
micronautGradlePluginVersion = 4.2.0
gruVersion = 0.9.1
druVersion = 0.8.1
spockVersion = 2.0-groovy-2.5
awsSdkVersion = 1.12.299
awsSdk2Version = 2.18.40
testcontainersVersion = 1.17.3
kordampVersion=0.45.0
kordampVersion=0.51.0
gitPublishPluginVersion=2.1.3
nexusPluginVersion=1.0.0
closureSupportVersion=0.6.3
mockitoVersion=2.23.4

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Thu Apr 09 06:59:57 CEST 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
Expand Down
28 changes: 11 additions & 17 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ pluginManagement {
gradlePluginPortal()
}
plugins {
id 'org.kordamp.gradle.groovy-project' version kordampVersion
id 'org.kordamp.gradle.checkstyle' version kordampVersion
id 'org.kordamp.gradle.codenarc' version kordampVersion
id 'org.kordamp.gradle.guide' version kordampVersion
id 'org.kordamp.gradle.coveralls' version kordampVersion
id 'com.github.kt3k.coveralls' version '2.9.0'
id 'org.ajoberstar.git-publish' version '2.1.3'
id 'org.kordamp.gradle.settings' version kordampVersion
id 'org.kordamp.gradle.groovy-project' version kordampVersion
id 'org.kordamp.gradle.checkstyle' version kordampVersion
id 'org.kordamp.gradle.codenarc' version kordampVersion
id 'org.kordamp.gradle.guide' version kordampVersion
id 'org.kordamp.gradle.coveralls' version kordampVersion
id 'org.ajoberstar.git-publish' version gitPublishPluginVersion
id 'io.github.gradle-nexus.publish-plugin' version nexusPluginVersion
}
}

Expand All @@ -38,20 +39,14 @@ buildscript {
}
}
dependencies {
classpath "org.kordamp.gradle:settings-gradle-plugin:$kordampVersion"
// forces the version suitable for all currently used plugins
classpath 'org.eclipse.jgit:org.eclipse.jgit:5.6.0.201912101111-r', {
force = true
}
classpath 'org.ajoberstar.grgit:grgit-core:4.0.1'
classpath "io.github.gradle-nexus:publish-plugin:1.0.0"
classpath "com.agorapulse.gradle:internal-maven-publish:$agorapulseGradlePluginsVersion"
}
}


plugins {
id 'com.gradle.enterprise' version '3.6.1'
id 'org.kordamp.gradle.settings'
id 'com.gradle.enterprise' version '3.15.1'
}

gradleEnterprise {
Expand All @@ -66,13 +61,12 @@ gradleEnterprise {
}


apply plugin: 'org.kordamp.gradle.settings'

projects {
directories = ['subprojects', 'examples', 'docs', 'benchmarks']

plugins {
dir('subproject') {
id 'io.micronaut.minimal.library'
id 'com.agorapulse.gradle:internal-maven-publish'
}
}
Expand Down

0 comments on commit 5b26cc8

Please sign in to comment.