Skip to content

Instantly share code, notes, and snippets.

@martijndwars
Created September 25, 2019 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martijndwars/f9ae9f2148abd367125986da65c56b04 to your computer and use it in GitHub Desktop.
Save martijndwars/f9ae9f2148abd367125986da65c56b04 to your computer and use it in GitHub Desktop.
Gradle exclusion
/*
* Depend on Spoofax and replace org.graalvm:graal-sdk by org.graalvm.skd:graal-sdk. The exclusion
* resolves a conflict during compilatin and also shows up in the generated .pom.
*/
plugins {
id 'java'
id 'maven-publish'
}
group = 'nl.martijndwars'
version = '1.0-SNAPSHOT'
repositories {
maven { url 'https://artifacts.metaborg.org/content/repositories/releases/' }
maven { url 'http://nexus.usethesource.io/content/repositories/public/' }
jcenter()
}
dependencies {
compile('org.metaborg:org.metaborg.spoofax.core.uber:2.5.7') {
exclude group: 'org.graalvm', module: 'graal-sdk'
}
compile 'org.graalvm.sdk:graal-sdk:19.1.1'
}
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment