Skip to content

Commit

Permalink
Continue refactoring build
Browse files Browse the repository at this point in the history
  • Loading branch information
deusaquilus committed Jan 29, 2024
1 parent 213a674 commit c29be23
Show file tree
Hide file tree
Showing 26 changed files with 87 additions and 612 deletions.
5 changes: 5 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ nexusPublishing {
}
}

allprojects {
group = "io.exoquery.pprint"
version = "1.2.0"
}

subprojects {
//val varintName = project.name

Expand Down
1 change: 0 additions & 1 deletion pprint-core/settings.gradle.kts

This file was deleted.

38 changes: 0 additions & 38 deletions pprint-jvm/build.gradle.kts

This file was deleted.

1 change: 0 additions & 1 deletion pprint-jvm/settings.gradle.kts

This file was deleted.

1 change: 0 additions & 1 deletion pprint-kmp/settings.gradle.kts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ tasks.withType<AbstractTestTask>().configureEach {
testLogging {
showStandardStreams = true
showExceptions = true
exceptionFormat = TestExceptionFormat.FULL
exceptionFormat = TestExceptionFormat.SHORT
events(TestLogEvent.STARTED, TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ kotlin {
sourceSets {
commonMain {
dependencies {
implementation(project(":pprint-core"))
implementation(project(":pprint-kotlin-core"))
api("org.jetbrains.kotlinx:kotlinx-serialization-core:1.6.2")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.KSerializer
import kotlinx.serialization.Serializable
import kotlinx.serialization.descriptors.*
import kotlinx.serialization.json.Json
import kotlinx.serialization.serializer

@Serializable
Expand Down
78 changes: 78 additions & 0 deletions pprint-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
import org.jetbrains.dokka.gradle.DokkaTask

plugins {
kotlin("jvm")
`java-library`
signing
}

tasks.named<Test>("test") {
useJUnitPlatform()
}

kotlin {
jvmToolchain(8)
}

dependencies {
testImplementation(kotlin("test"))
implementation(kotlin("reflect"))
implementation(project(":pprint-kotlin-core"))
}

publishing {
val varintName = project.name

val dokkaHtml by tasks.getting(org.jetbrains.dokka.gradle.DokkaTask::class)

tasks {
val javadocJar by creating(Jar::class) {
dependsOn(dokkaHtml)
archiveClassifier.set("javadoc")
from(dokkaHtml.outputDirectory)
}
val sourcesJar by creating(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets["main"].allSource)
}
}

publications {
create<MavenPublication>("mavenJava") {
from(components["kotlin"])
artifactId = varintName

artifact(tasks["javadocJar"])
artifact(tasks["sourcesJar"])

pom {
name.set("decomat")
description.set("DecoMat - Deconstructive Pattern Matching for Kotlin")
url.set("https://github.com/exoquery/decomat")

licenses {
license {
name.set("The Apache Software License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
distribution.set("repo")
}
}

developers {
developer {
name.set("Alexander Ioffe")
email.set("[email protected]")
organization.set("github")
organizationUrl.set("http://www.github.com")
}
}

scm {
url.set("https://github.com/exoquery/decomat/tree/main")
connection.set("scm:git:git://github.com/ExoQuery/DecoMat.git")
developerConnection.set("scm:git:ssh://github.com:ExoQuery/DecoMat.git")
}
}
}
}
}
4 changes: 2 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include(":pprint-core", ":pprint-kmp", ":pprint-jvm")
include(":pprint-kotlin-core", ":pprint-kotlin-kmp", ":pprint-kotlin")

pluginManagement {
}

rootProject.name = "pprint-kotlin"
rootProject.name = "pprint-kotlin-root"
Loading

0 comments on commit c29be23

Please sign in to comment.