@@ -3,12 +3,14 @@ plugins {
33 id ' java-library'
44 id ' maven-publish'
55 id ' com.jfrog.bintray' version ' 1.8.4'
6+ id ' org.jetbrains.kotlin.jvm' version ' 1.3.61'
7+ id ' org.jetbrains.dokka' version ' 0.10.0'
68 id ' org.unbroken-dome.test-sets' version ' 2.2.1'
79 id " com.github.ben-manes.versions" version " 0.27.0"
810}
911
1012group ' com.github.hauner.openapi'
11- version ' 1.0.0.M5 '
13+ version ' 1.0.0.M8 '
1214
1315sourceCompatibility = JavaVersion . VERSION_1_8
1416targetCompatibility = JavaVersion . VERSION_1_8
2325
2426repositories {
2527 mavenCentral()
28+ jcenter()
2629 maven {
2730 url " https://oss.sonatype.org/content/repositories/snapshots"
2831 }
@@ -43,6 +46,7 @@ check.dependsOn testInt
4346
4447dependencies {
4548 implementation ' org.codehaus.groovy:groovy:3.0.0'
49+ implementation ' org.jetbrains.kotlin:kotlin-stdlib'
4650 implementation ' io.swagger.parser.v3:swagger-parser:2.0.17'
4751 implementation ' com.google.googlejavaformat:google-java-format:1.7'
4852 compileOnly " com.github.hauner.openapi:openapi-generatr-api:$generatrApiVersion "
@@ -56,23 +60,33 @@ dependencies {
5660
5761 testIntImplementation " com.github.hauner.openapi:openapi-generatr-api:$generatrApiVersion "
5862 testIntImplementation ' io.github.java-diff-utils:java-diff-utils:4.5'
63+ testIntRuntimeOnly ' org.slf4j:slf4j-simple:1.7.30'
64+ // testIntRuntimeOnly 'org.slf4j:slf4j-nop:1.6.1'
5965}
6066
6167task sourcesJar (type : Jar , dependsOn : classes) {
62- archiveClassifier = ' sources'
68+ archiveClassifier. set ( ' sources' )
6369 from sourceSets. main. allSource
6470}
6571
66- task javadocJar (type : Jar , dependsOn : groovydoc) {
67- archiveClassifier = ' javadoc'
68- from groovydoc . destinationDir
72+ task javadocJar (type : Jar , dependsOn : [ groovydoc, dokka] ) {
73+ archiveClassifier. set ( ' javadoc' )
74+ from " $b uildDir /docs "
6975}
7076
7177artifacts {
7278 archives sourcesJar
7379 archives javadocJar
7480}
7581
82+ groovydoc {
83+ destinationDir file(" $buildDir /docs/groovy" )
84+ }
85+
86+ dokka {
87+ outputFormat = ' html'
88+ outputDirectory = " $buildDir /docs/kotlin"
89+ }
7690
7791bintray {
7892 user = bintrayUser
0 commit comments