@@ -5,13 +5,13 @@ import org.jetbrains.dokka.DokkaConfiguration.Visibility.PUBLIC
5
5
import org.jetbrains.dokka.gradle.DokkaTask
6
6
7
7
plugins {
8
- id(" org.jetbrains.kotlin.jvm" )
8
+ id(" com.gabrielfeo.kotlin-jvm-library" )
9
+ id(" com.gabrielfeo.test-suites" )
9
10
id(" org.jetbrains.dokka" )
10
11
id(" org.openapi.generator" )
11
12
`java- library`
12
- `java- test- fixtures`
13
13
`maven- publish`
14
- ` signing`
14
+ signing
15
15
}
16
16
17
17
val repoUrl = " https://github.com/gabrielfeo/gradle-enterprise-api-kotlin"
@@ -158,11 +158,6 @@ java {
158
158
}
159
159
}
160
160
161
- components.getByName<AdhocComponentWithVariants >(" java" ).apply {
162
- withVariantsFromConfiguration(configurations[" testFixturesApiElements" ]) { skip() }
163
- withVariantsFromConfiguration(configurations[" testFixturesRuntimeElements" ]) { skip() }
164
- }
165
-
166
161
tasks.withType<DokkaTask >().configureEach {
167
162
dokkaSourceSets.all {
168
163
sourceLink {
@@ -189,45 +184,6 @@ tasks.named<Jar>("javadocJar") {
189
184
from(tasks.dokkaHtml)
190
185
}
191
186
192
- testing {
193
- suites {
194
- getByName<JvmTestSuite >(" test" ) {
195
- dependencies {
196
- implementation(" com.squareup.okhttp3:mockwebserver:4.12.0" )
197
- implementation(" com.squareup.okio:okio:3.9.0" )
198
- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.0" )
199
- }
200
- }
201
- register<JvmTestSuite >(" integrationTest" ) {
202
- dependencies {
203
- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.0" )
204
- implementation(" com.google.guava:guava:33.1.0-jre" )
205
- }
206
- }
207
- withType<JvmTestSuite >().configureEach {
208
- useKotlinTest()
209
- }
210
- }
211
- }
212
-
213
- kotlin {
214
- target {
215
- val main by compilations.getting
216
- val integrationTest by compilations.getting
217
- val test by compilations.getting
218
- val testFixtures by compilations.getting
219
- test.associateWith(main)
220
- test.associateWith(testFixtures)
221
- integrationTest.associateWith(main)
222
- integrationTest.associateWith(testFixtures)
223
- testFixtures.associateWith(main)
224
- }
225
- }
226
-
227
- tasks.named(" check" ) {
228
- dependsOn(" integrationTest" )
229
- }
230
-
231
187
tasks.named<Test >(" integrationTest" ) {
232
188
jvmArgs(" -Xmx512m" )
233
189
environment(" GRADLE_ENTERPRISE_API_LOG_LEVEL" , " DEBUG" )
@@ -253,6 +209,11 @@ dependencies {
253
209
api(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0" )
254
210
implementation(" org.slf4j:slf4j-api:2.0.11" )
255
211
implementation(" ch.qos.logback:logback-classic:1.4.14" )
212
+ testImplementation(" com.squareup.okhttp3:mockwebserver:4.12.0" )
213
+ testImplementation(" com.squareup.okio:okio:3.9.0" )
214
+ testImplementation(" org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.0" )
215
+ integrationTestImplementation(" org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.0" )
216
+ integrationTestImplementation(" com.google.guava:guava:33.1.0-jre" )
256
217
}
257
218
258
219
publishing {
0 commit comments