mirror of
https://github.com/tadfisher/gradle2nix.git
synced 2026-01-12 07:50:53 -05:00
- Use Apache Ivy to resolve artifact URLs - Update build model with full artifact IDs - Generate Maven module metadata to support dynamic version constraints - Resolve snapshot versions and generate snapshot metadata - Add test fixtures and rewrite Gradle plugin tests - Update dependencies
57 lines
1.6 KiB
Kotlin
57 lines
1.6 KiB
Kotlin
plugins {
|
|
base
|
|
idea
|
|
kotlin("jvm") version embeddedKotlinVersion apply false
|
|
kotlin("kapt") version embeddedKotlinVersion apply false
|
|
id("com.github.johnrengelman.shadow") version "5.2.0" apply false
|
|
id("org.ajoberstar.stutter") version "0.5.1" apply false
|
|
}
|
|
|
|
group = "org.nixos.gradle2nix"
|
|
version = property("VERSION") ?: "unspecified"
|
|
|
|
subprojects {
|
|
repositories {
|
|
jcenter()
|
|
maven { url = uri("https://repo.gradle.org/gradle/libs-releases") }
|
|
}
|
|
group = rootProject.group
|
|
version = rootProject.version
|
|
}
|
|
|
|
allprojects {
|
|
plugins.withType<JavaBasePlugin> {
|
|
this@allprojects.withConvention(JavaPluginConvention::class) {
|
|
sourceSets.all {
|
|
configurations {
|
|
named(compileClasspathConfigurationName) {
|
|
resolutionStrategy.activateDependencyLocking()
|
|
}
|
|
named(runtimeClasspathConfigurationName) {
|
|
resolutionStrategy.activateDependencyLocking()
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.register("lock") {
|
|
doFirst {
|
|
assert(gradle.startParameter.isWriteDependencyLocks)
|
|
}
|
|
doLast {
|
|
sourceSets.all {
|
|
configurations[compileClasspathConfigurationName].resolve()
|
|
configurations[runtimeClasspathConfigurationName].resolve()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks {
|
|
wrapper {
|
|
gradleVersion = "6.1"
|
|
distributionType = Wrapper.DistributionType.ALL
|
|
}
|
|
}
|