Guest User

Untitled

a guest
Apr 17th, 2020
204
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 'maven-publish'
  4. }
  5.  
  6. def _name = "kotlin-lib"
  7. def _version = "1.0"
  8. def _group = "io.github.censored"
  9. def _repo = projectDir.getParent() + "/_repo/"
  10.  
  11. group _group
  12. version _version
  13.  
  14. publishing {
  15.     publications {
  16.         maven(MavenPublication) {
  17.             groupId = _group
  18.             artifactId = _name
  19.             version = _version
  20.  
  21.             from components.java
  22.         }
  23.     }
  24.     repositories {
  25.         maven {
  26.             url = _repo
  27.         }
  28.     }
  29. }
  30.  
  31. repositories {
  32.     mavenCentral()
  33. }
  34.  
  35. dependencies {
  36.     implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
  37.     testImplementation "org.junit.jupiter:junit-jupiter:5.6.0"
  38. }
  39.  
  40. compileKotlin {
  41.     kotlinOptions.jvmTarget = "1.8"
  42. }
  43.  
  44. compileTestKotlin {
  45.     kotlinOptions.jvmTarget = "1.8"
  46. }
  47.  
  48. test {
  49.     useJUnitPlatform()
  50. }
Advertisement
Add Comment
Please, Sign In to add comment