Guest User

Untitled

a guest
Nov 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. apply plugin: 'java'
  2. apply plugin: 'application' // needed for something else
  3. apply plugin: 'eclipse'
  4.  
  5. repositories
  6. {
  7. mavenCentral()
  8. }
  9.  
  10. // this makes sure the folder can be accessed from src and not src/main/java/package/
  11. sourceSets
  12. {
  13. main
  14. {
  15. java
  16. {
  17. srcDirs = ['src']
  18. }
  19. }
  20. }
  21.  
  22. // this is just for the jar
  23. jar
  24. {
  25. manifest
  26. {
  27. attributes 'Main-Class': 'hello.HelloWorld'
  28. }
  29. }
  30.  
  31. // this is for the application
  32. mainClassName = 'hello.HelloWorld'
  33.  
  34.  
  35. dependencies {}
Add Comment
Please, Sign In to add comment