gpt4 book ai didi

gradle - 如何将现有的Micronaut应用程序升级到新的Micronaut版本1.1.2?

转载 作者:行者123 更新时间:2023-12-03 04:15:43 25 4
gpt4 key购买 nike

我一直在这样升级。

plugins {
id "io.spring.dependency-management" version "1.0.6.RELEASE"
id "com.github.johnrengelman.shadow" version "4.0.2"
}

apply plugin:"application"
apply plugin:"groovy"

version "0.1"
group "com.shanky"

repositories {
mavenLocal()
mavenCentral()
maven { url "https://jcenter.bintray.com" }
}

dependencyManagement {
imports {
mavenBom 'io.micronaut:micronaut-bom:1.1.2'
}
}

dependencies {
compile "io.micronaut:micronaut-runtime-groovy"
compile "io.micronaut:micronaut-validation"
compile "io.micronaut:micronaut-http-client"
compile "io.micronaut:micronaut-http-server-netty"
compileOnly "io.micronaut:micronaut-inject-groovy"
runtime "ch.qos.logback:logback-classic:1.2.3"
testCompile "io.micronaut:micronaut-inject-groovy"
testCompile("org.spockframework:spock-core") {
exclude group: "org.codehaus.groovy", module: "groovy-all"
}
compile 'io.micronaut:micronaut-views'
runtime 'org.thymeleaf:thymeleaf:3.0.11.RELEASE'
compile "io.micronaut.configuration:micronaut-hibernate-validator"
compile "io.micronaut.configuration:micronaut-hibernate-gorm"
runtime 'org.postgresql:postgresql:42.2.5'
annotationProcessor "io.micronaut:micronaut-security"
compile "io.micronaut:micronaut-security"
compile "io.micronaut:micronaut-security-session"
runtime "org.hibernate:hibernate-ehcache:5.1.9.Final"
}

shadowJar {
mergeServiceFiles()
}

run.jvmArgs('-noverify', '-XX:TieredStopAtLevel=1')

mainClassName = "com.shanky.Application"

tasks.withType(GroovyCompile) {
groovyOptions.forkOptions.jvmArgs.add('-Dgroovy.parameters=true')
}

到目前为止,这是我的build.gradle文件。我已经更新了mavenBom以升级Micronaut版本。我已经用Micronaut版本1.1.2创建了一个虚拟项目,只是为了区分build.gradle文件。我看不出它们之间有什么重大区别。
任何帮助,将不胜感激

最佳答案

But it is not upgrading.



这不太可能是正确的。如果IDE与您的Gradle构建不同步,则可能是您未在IDE中看到此更改的效果,但实际上更改 build.gradle中的版本号确实会升级项目。

关于gradle - 如何将现有的Micronaut应用程序升级到新的Micronaut版本1.1.2?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56311383/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com