Created
January 14, 2020 12:21
-
-
Save tr7zw/debb0758e68dcc107024c361c7440503 to your computer and use it in GitHub Desktop.
ivypot ignored constraint example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rootProject.name = 'rootproject' | |
include ":subproject" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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