Skip to content

Commit

Permalink
release v0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
doyaaaaaken committed Sep 8, 2019
1 parent f55ab7c commit 743e495
Showing 1 changed file with 9 additions and 31 deletions.
40 changes: 9 additions & 31 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,22 @@ repositories {
jcenter()
}

val dokkaJar = task<Jar>("dokkaJar") {
group = JavaBasePlugin.DOCUMENTATION_GROUP
archiveClassifier.set("javadoc")
}

kotlin {
jvm {
val main by compilations.getting {
kotlinOptions {
jvmTarget = "1.8"
}
}
//https://docs.gradle.org/current/userguide/publishing_maven.html
mavenPublication {
artifact(dokkaJar)
}
}
sourceSets {
val commonMain by getting {
Expand Down Expand Up @@ -62,29 +71,8 @@ val jvmTest by tasks.getting(Test::class) {
useJUnitPlatform { }
}

////publishing settings
////https://docs.gradle.org/current/userguide/publishing_maven.html
//val sourcesJar = task<Jar>("sourcesJar") {
// from(sourceSets.main.get().allSource)
// archiveClassifier.set("sources")
//}
//val dokkaJar = task<Jar>("dokkaJar") {
// group = JavaBasePlugin.DOCUMENTATION_GROUP
// archiveClassifier.set("javadoc")
//}


publishing {
// publications["jvm"].apply {
// artifactId = "kotlin-csv"
// from(components["java"])
// (this as MavenPublication).setArtifacts(dokkaJar)

// artifacts {
// artifact(sourcesJar)
// artifact(dokkaJar)
// }
// }
publications.all {
(this as MavenPublication).pom {
name.set("kotlin-csv")
Expand Down Expand Up @@ -113,16 +101,6 @@ publishing {
}
}
}
// publications {
// create<MavenPublication>("mavenJava") {
// artifactId = "kotlin-csv"
// from(components["java"])
// artifacts {
// artifact(sourcesJar)
// artifact(dokkaJar)
// }
// }
// }
repositories {
maven {
credentials {
Expand Down

0 comments on commit 743e495

Please sign in to comment.