ZenScript main repository
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

build.gradle 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Note: "common.gradle" in the root project contains additional initialization
  2. // for this project. This initialization is applied in the "build.gradle"
  3. // of the root project.
  4. // NetBeans will automatically add "run" and "debug" tasks relying on the
  5. // "mainClass" property. You may however define the property prior executing
  6. // tasks by passing a "-PmainClass=<QUALIFIED_CLASS_NAME>" argument.
  7. //
  8. // Note however, that you may define your own "run" and "debug" task if you
  9. // prefer. In this case NetBeans will not add these tasks but you may rely on
  10. // your own implementation.
  11. if (!hasProperty('mainClass')) {
  12. ext.mainClass = 'org.openzen.zenscript.ide.Main'
  13. }
  14. dependencies {
  15. compile project(':DrawableGui')
  16. compile project(':Constructor')
  17. }
  18. task fatJar(type: Jar) {
  19. manifest {
  20. attributes 'Implementation-Title': 'ZenCode IDE',
  21. 'Class-Path': '.',
  22. 'Main-Class': 'org.openzen.zenscript.ide.Main'
  23. }
  24. baseName = project.name + '-all'
  25. from {
  26. configurations.compile.collect {
  27. it.isDirectory() ? it : zipTree(it)
  28. }
  29. } {
  30. exclude "META-INF/INDEX.LIST"
  31. exclude "META-INF/*.SF"
  32. exclude "META-INF/*.DSA"
  33. exclude "META-INF/*.RSA"
  34. }
  35. with jar
  36. }