Advertisement
Guest User

Untitled

a guest
Apr 17th, 2020
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.89 KB | None | 0 0
  1. plugins {
  2.     id 'org.jetbrains.kotlin.jvm' version '1.3.71'
  3.     id "com.github.johnrengelman.shadow" version "5.2.0"
  4. }
  5.  
  6. def _repo = projectDir.getParent() + "/_repo/" // <-
  7.  
  8. group 'io.github.censored'
  9. version '1.0'
  10.  
  11. repositories {
  12.     mavenCentral()
  13.     maven {
  14.         url _repo // <-
  15.     }
  16. }
  17.  
  18. dependencies {
  19.     implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
  20.     implementation "io.github.censored:kotlin-lib:1.0" // <-
  21.     testImplementation "org.jetbrains.kotlin:kotlin-test"
  22.     testImplementation "org.jetbrains.kotlin:kotlin-test-junit"
  23.     testImplementation "org.junit.jupiter:junit-jupiter:5.6.0"
  24. }
  25.  
  26. compileKotlin {
  27.     kotlinOptions.jvmTarget = "1.8"
  28. }
  29.  
  30. compileTestKotlin {
  31.     kotlinOptions.jvmTarget = "1.8"
  32. }
  33.  
  34.  
  35. shadowJar {
  36.     manifest {
  37.         attributes(
  38.                 'Main-Class': 'MainKt'
  39.         )
  40.     }
  41. }
  42.  
  43. test {
  44.     useJUnitPlatform()
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement