Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plugins {
- id 'org.jetbrains.kotlin.jvm' version '1.3.71'
- id 'maven-publish' // <-
- }
- def _name = "kotlin-lib"
- def _version = "1.0"
- def _group = "io.github.censored"
- def _repo = projectDir.getParent() + "/_repo/" // <-
- group _group
- version _version
- // <-
- publishing {
- publications {
- maven(MavenPublication) {
- groupId = _group
- artifactId = _name
- version = _version
- from components.java
- }
- }
- repositories {
- maven {
- url = _repo
- }
- }
- }
- repositories {
- mavenCentral()
- }
- dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
- testImplementation "org.junit.jupiter:junit-jupiter:5.6.0"
- }
- compileKotlin {
- kotlinOptions.jvmTarget = "1.8"
- }
- compileTestKotlin {
- kotlinOptions.jvmTarget = "1.8"
- }
- test {
- useJUnitPlatform()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement