Skip to content

Instantly share code, notes, and snippets.

@RadekMolenda
Created November 10, 2020 08:22
Show Gist options
  • Save RadekMolenda/b06beb0e4e76b5488ab0147899a1de59 to your computer and use it in GitHub Desktop.
Save RadekMolenda/b06beb0e4e76b5488ab0147899a1de59 to your computer and use it in GitHub Desktop.
Example build gradle
plugins {
id 'java-library'
}
repositories {
mavenCentral()
}
configurations {
myCustomConfig
}
dependencies {
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.11'
compile group: 'commons-io', name: 'commons-io', version: '2.8.0'
myCustomConfig group: 'commons-io', name: 'commons-io', version: '2.8.0'
}
sourceSets {
main.java.srcDir "src/main"
}
jar {
from configurations.compile.collect { zipTree it }
manifest.attributes "Main-Class": "net.hello.Main"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment