diff --git a/gradle.properties b/gradle.properties index f841c37c..6cda67d0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,8 +1,11 @@ license=apache +git_url=github.com/diffplug/selfie +maven_group=com.diffplug.selfie +javadoc_links= ver_JUNIT_API=5.0.0 -ver_JUNIT_USE=5.10.0 -ver_JUNIT_PIONEER=2.0.1 -ver_OKIO=3.5.0 +ver_JUNIT_USE=5.10.1 +ver_JUNIT_PIONEER=2.1.0 +ver_OKIO=3.6.0 ver_KOTLIN_TEST=1.9.10 ver_KOTEST=5.6.2 \ No newline at end of file diff --git a/selfie-lib/build.gradle b/selfie-lib/build.gradle index 69142b8f..623ca8e4 100644 --- a/selfie-lib/build.gradle +++ b/selfie-lib/build.gradle @@ -1,10 +1,16 @@ plugins { id 'org.jetbrains.kotlin.multiplatform' + id 'maven-publish' } repositories { mavenCentral() } +ext { + maven_name = 'selfie-lib' + maven_desc = 'Core logic and parsing for Selfie' +} + apply from: rootProject.file('gradle/spotless.gradle') kotlin { jvm { @@ -30,4 +36,8 @@ kotlin { // the normal `test` task doesn't work for multiplatform projects tasks.create('test') { dependsOn('jvmTest') -} \ No newline at end of file +} + +// it all needs to get published and formatted +apply from: 干.file('base/maven.gradle') +apply from: 干.file('base/sonatype.gradle') \ No newline at end of file diff --git a/selfie-runner-junit5/build.gradle b/selfie-runner-junit5/build.gradle index 98877618..8f2c597d 100644 --- a/selfie-runner-junit5/build.gradle +++ b/selfie-runner-junit5/build.gradle @@ -4,21 +4,37 @@ plugins { repositories { mavenCentral() } +ext { + maven_name = 'selfie-runner-junit5' + maven_desc = 'JUnit 5 test runner for Selfie' +} + apply from: rootProject.file('gradle/spotless.gradle') apply plugin: 'java-library' dependencies { api project(':selfie-lib') // see if we can drop this down to 1.0.0 - implementation 'org.junit.platform:junit-platform-launcher:1.10.0' + implementation 'org.junit.platform:junit-platform-launcher:1.10.1' compileOnly "org.junit.jupiter:junit-jupiter-api:$ver_JUNIT_API" + // jsoup + compileOnly 'org.jsoup:jsoup:1.17.1' + testImplementation 'org.jsoup:jsoup:1.17.1' + // flexmark + compileOnly 'com.vladsch.flexmark:flexmark-html2md-converter:0.64.8' + testImplementation 'com.vladsch.flexmark:flexmark-html2md-converter:0.64.8' testImplementation "com.squareup.okio:okio:$ver_OKIO" testImplementation "org.jetbrains.kotlin:kotlin-test-junit5:$ver_KOTLIN_TEST" testImplementation "io.kotest:kotest-assertions-core:$ver_KOTEST" testImplementation "org.junit.jupiter:junit-jupiter:$ver_JUNIT_USE" testImplementation "org.junit-pioneer:junit-pioneer:$ver_JUNIT_PIONEER" + testImplementation gradleTestKit() } test { useJUnitPlatform() -} \ No newline at end of file +} + +// it all needs to get published and formatted +apply from: 干.file('base/maven.gradle') +apply from: 干.file('base/sonatype.gradle')