Kallisti-based OpenComputers-compatible computer plugin for Paper servers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. apply plugin: 'java'
  2. apply plugin: 'idea'
  3. apply plugin: 'com.github.johnrengelman.shadow'
  4. buildscript {
  5. repositories {
  6. maven {
  7. url "https://plugins.gradle.org/m2/"
  8. }
  9. jcenter()
  10. }
  11. dependencies {
  12. classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.4'
  13. }
  14. }
  15. configurations {
  16. shadow
  17. }
  18. sourceCompatibility = 1.8
  19. def ENV = System.getenv()
  20. if (ENV.BUILD_NUMBER) {
  21. version = version + "." + "${System.getenv().BUILD_NUMBER}"
  22. }
  23. group = 'pl.asie.papercomputers'
  24. archivesBaseName = project.name.toLowerCase()
  25. repositories {
  26. mavenCentral()
  27. maven {
  28. url "http://artifactory.terasology.org/artifactory/virtual-repo-live"
  29. }
  30. maven {
  31. name = 'DestroysTokyo'
  32. url = 'https://papermc.io/repo/repository/maven-public/'
  33. }
  34. }
  35. dependencies {
  36. compile 'com.destroystokyo.paper:paper-api:1.13.2-R0.1-SNAPSHOT'
  37. compile group: 'org.terasology.jnlua', name: 'JNLua', version: '0.1.0-SNAPSHOT'
  38. shadow group: 'org.terasology.jnlua', name: 'JNLua', version: '0.1.0-SNAPSHOT'
  39. }
  40. task allJar(type: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
  41. configurations = [project.configurations.shadow]
  42. classifier = 'all'
  43. from(project.sourceSets.main.output)
  44. }
  45. build.dependsOn allJar