-
Notifications
You must be signed in to change notification settings - Fork 64
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 gradle to 7.3 #300
Update gradle to 7.3 #300
Conversation
14490cf
to
cf7d856
Compare
atomicfu-maven-plugin/build.gradle
Outdated
} | ||
|
||
def pomFile = file("$buildDir/pom.xml") | ||
def pomFile = file("$buildDir/publications/maven/pom-default.xml") |
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.
Now I rely on the path of the pom file, created with generatePomFileForMavenPublication
. Is it ok or I can set the custom path somehow?
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.
Better to use related task destination, something like this:
def pomFile = tasks.named("generatePomFileForMainPublication", GenerateMavenPom).map { it.get().destintion() }.get()
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.
Fixed
atomicfu/build.gradle
Outdated
@@ -305,15 +306,16 @@ tasks.withType(Test) { | |||
|
|||
task compileJavaModuleInfo(type: JavaCompile) { | |||
def moduleName = "kotlinx.atomicfu" // this module's name | |||
def compileKotlinJvm = kotlin.targets["jvm"].compilations["main"].compileKotlinTask | |||
def compilation = kotlin.targets["jvm"].compilations["main"] | |||
def compileKotlinTask = compilation.compileTaskProvider.get() as KotlinCompile |
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.
Nit: would be nice to not trigger compile task eager creation and just cast to TaskProvider<KotlinJvmCompile>
. But it is completely optional in this PR and it could be fixed later by me.
atomicfu-maven-plugin/build.gradle
Outdated
} | ||
|
||
def pomFile = file("$buildDir/pom.xml") | ||
def pomFile = file("$buildDir/publications/maven/pom-default.xml") |
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.
Better to use related task destination, something like this:
def pomFile = tasks.named("generatePomFileForMainPublication", GenerateMavenPom).map { it.get().destintion() }.get()
Co-authored-by: Yahor Berdnikau <yahor.berdnikau@jetbrains.com>
* Migrated from Gradle 6 to 7 * Updated atomicfu-maven-plugin publication (cherry picked from commit 0fac729)
No description provided.