mirror of
https://github.com/tadfisher/gradle2nix.git
synced 2026-01-11 23:40:37 -05:00
Rewrite based on code from the GitHub Dependency Graph Gradle Plugin
This commit is contained in:
@@ -1,44 +1,16 @@
|
||||
@file:Suppress("UnstableApiUsage")
|
||||
|
||||
enableFeaturePreview("ONE_LOCKFILE_PER_PROJECT")
|
||||
|
||||
pluginManagement {
|
||||
val shadowVersion: String by settings
|
||||
val stutterVersion: String by settings
|
||||
|
||||
resolutionStrategy {
|
||||
eachPlugin {
|
||||
when (requested.id.id) {
|
||||
"com.github.johnrengelman.shadow" -> useVersion(shadowVersion)
|
||||
"org.ajoberstar.stutter" -> useVersion(stutterVersion)
|
||||
}
|
||||
when (requested.id.namespace) {
|
||||
"org.jetbrains.kotlin",
|
||||
"org.jetbrains.kotlin.plugin" -> useVersion(embeddedKotlinVersion)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
kotlin("jvm") apply false
|
||||
kotlin("kapt") apply false
|
||||
id("com.github.johnrengelman.shadow") apply false
|
||||
id("org.ajoberstar.stutter") apply false
|
||||
}
|
||||
|
||||
dependencyResolutionManagement {
|
||||
repositories {
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
maven { url = uri("https://repo.gradle.org/gradle/libs-releases") }
|
||||
}
|
||||
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
|
||||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||
}
|
||||
|
||||
buildscript {
|
||||
configurations.classpath {
|
||||
resolutionStrategy.activateDependencyLocking()
|
||||
}
|
||||
}
|
||||
|
||||
include(":app", ":ivy", ":model", ":plugin")
|
||||
include(
|
||||
":app",
|
||||
":model",
|
||||
":plugin",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user