Created
November 10, 2020 08:22
-
-
Save RadekMolenda/b06beb0e4e76b5488ab0147899a1de59 to your computer and use it in GitHub Desktop.
Example build gradle
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
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