Skip to content

Instantly share code, notes, and snippets.

@tr7zw
Created January 14, 2020 12:21
Show Gist options
  • Save tr7zw/debb0758e68dcc107024c361c7440503 to your computer and use it in GitHub Desktop.
Save tr7zw/debb0758e68dcc107024c361c7440503 to your computer and use it in GitHub Desktop.
ivypot ignored constraint example
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'org.ysb33r.gradle:ivypot:0.9'
}
}
subprojects {
apply plugin: 'java-library'
apply plugin : 'org.ysb33r.ivypot'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
group = "somegroup"
//External-Dependencies
dependencies {
constraints {
// Define dependency with version to be used.
// This version is used when we define a dependency
// without a version.
annotationProcessor("org.projectlombok:lombok:1.18.10")
implementation("org.projectlombok:lombok:1.18.10")
}
}
repositories {
mavenLocal()
mavenCentral()
}
syncRemoteRepositories {
repoRoot new File('repo').getAbsolutePath() // (1)
repositories { // (2)
mavenLocal()
mavenCentral()
}
configurations 'implementation' // (4)
includeBuildScriptDependencies = false // (5)
}
}
rootProject.name = 'rootproject'
include ":subproject"
apply from: '../build.gradle'
dependencies {
annotationProcessor group: 'org.projectlombok', name:'lombok'
implementation group: 'org.projectlombok', name:'lombok'
}
version = '1.0.0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment