Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apply plugin: 'java'
- apply plugin: 'application' // needed for something else
- apply plugin: 'eclipse'
- repositories
- {
- mavenCentral()
- }
- // this makes sure the folder can be accessed from src and not src/main/java/package/
- sourceSets
- {
- main
- {
- java
- {
- srcDirs = ['src']
- }
- }
- }
- // this is just for the jar
- jar
- {
- manifest
- {
- attributes 'Main-Class': 'hello.HelloWorld'
- }
- }
- // this is for the application
- mainClassName = 'hello.HelloWorld'
- dependencies {}
Add Comment
Please, Sign In to add comment