File tree Expand file tree Collapse file tree 20 files changed +37
-78
lines changed
ktor-server-jetty-jakarta
ktor-server-jetty-test-http2-jakarta
ktor-server-jetty-test-http2
ktor-server-servlet-jakarta
ktor-server-tomcat-jakarta Expand file tree Collapse file tree 20 files changed +37
-78
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,6 @@ subprojects {
57
57
configureTargets()
58
58
if (CI ) configureTestTasksOnCi()
59
59
60
- configurations {
61
- maybeCreate(" testOutput" )
62
- }
63
-
64
60
kotlin {
65
61
if (! internalProjects.contains(project.name)) explicitApi()
66
62
Original file line number Diff line number Diff line change @@ -34,20 +34,6 @@ fun Project.configureJvm() {
34
34
}
35
35
}
36
36
37
- tasks.register<Jar >(" jarTest" ) {
38
- dependsOn(tasks.named(" jvmTestClasses" ))
39
- archiveClassifier = " test"
40
- from(kotlin.jvm().compilations[" test" ].output)
41
- }
42
-
43
- configurations {
44
- val testCompile = findByName(" testCompile" ) ? : return @configurations
45
-
46
- val testOutput by creating {
47
- extendsFrom(testCompile)
48
- }
49
- }
50
-
51
37
val testJdk = project.testJdk
52
38
val jvmTest = tasks.named<KotlinJvmTest >(" jvmTest" ) {
53
39
maxHeapSize = " 2g"
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
2
+ * Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
3
*/
4
4
5
5
description = " Wrapper for ktor-server-core and base plugins"
@@ -34,7 +34,3 @@ kotlin.sourceSets {
34
34
}
35
35
}
36
36
}
37
-
38
- artifacts {
39
- add(" testOutput" , tasks.named(" jarTest" ))
40
- }
Original file line number Diff line number Diff line change @@ -20,10 +20,4 @@ kotlin.sourceSets {
20
20
api(project(" :ktor-server:ktor-server-test-base" ))
21
21
}
22
22
}
23
- jvmTest {
24
- dependencies {
25
- api(project(" :ktor-server:ktor-server-core" , configuration = " testOutput" ))
26
- api(libs.logback.classic)
27
- }
28
- }
29
23
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
2
+ * Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
3
*/
4
4
5
5
description = " "
@@ -41,14 +41,9 @@ kotlin {
41
41
implementation(project(" :ktor-server:ktor-server-config-yaml" ))
42
42
implementation(project(" :ktor-server:ktor-server-test-base" ))
43
43
implementation(project(" :ktor-server:ktor-server-test-suites" ))
44
-
45
- api(libs.logback.classic)
44
+
46
45
implementation(libs.mockk)
47
46
}
48
47
}
49
48
}
50
49
}
51
-
52
- artifacts {
53
- add(" testOutput" , tasks.named(" jarTest" ))
54
- }
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
2
+ * Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
3
*/
4
4
5
5
description = " "
@@ -26,8 +26,6 @@ kotlin {
26
26
api(project(" :ktor-server:ktor-server-test-suites" ))
27
27
28
28
api(libs.jetty.servlet.jakarta)
29
- api(project(" :ktor-server:ktor-server-core" , configuration = " testOutput" ))
30
- api(libs.logback.classic)
31
29
}
32
30
}
33
31
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
2
+ * Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
3
*/
4
4
5
5
import org.jetbrains.kotlin.gradle.targets.jvm.tasks.KotlinJvmTest
@@ -12,9 +12,6 @@ kotlin.sourceSets {
12
12
api(libs.jetty.servlet.jakarta)
13
13
api(project(" :ktor-server:ktor-server-core" ))
14
14
api(project(" :ktor-server:ktor-server-jetty-jakarta" ))
15
- api(project(" :ktor-server:ktor-server-core" , configuration = " testOutput" ))
16
-
17
- api(libs.logback.classic)
18
15
}
19
16
}
20
17
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
2
+ * Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
3
*/
4
4
5
5
description = " "
@@ -25,8 +25,6 @@ kotlin {
25
25
api(project(" :ktor-server:ktor-server-test-suites" ))
26
26
27
27
api(libs.jetty.servlet)
28
- api(project(" :ktor-server:ktor-server-core" , configuration = " testOutput" ))
29
- api(libs.logback.classic)
30
28
}
31
29
}
32
30
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
2
+ * Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
3
*/
4
4
5
5
import org.jetbrains.kotlin.gradle.targets.jvm.tasks.KotlinJvmTest
@@ -12,9 +12,6 @@ kotlin.sourceSets {
12
12
api(libs.jetty.servlet)
13
13
api(project(" :ktor-server:ktor-server-core" ))
14
14
api(project(" :ktor-server:ktor-server-jetty" ))
15
- api(project(" :ktor-server:ktor-server-core" , configuration = " testOutput" ))
16
-
17
- api(libs.logback.classic)
18
15
}
19
16
}
20
17
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
2
+ * Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
3
*/
4
4
5
5
import org.jetbrains.kotlin.gradle.targets.jvm.tasks.KotlinJvmTest
@@ -43,9 +43,6 @@ kotlin.sourceSets {
43
43
api(libs.netty.tcnative)
44
44
api(libs.netty.tcnative.boringssl.static)
45
45
api(libs.mockk)
46
- api(libs.logback.classic)
47
-
48
- api(project(" :ktor-server:ktor-server-core" , configuration = " testOutput" ))
49
46
}
50
47
}
51
48
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
2
+ * Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
3
*/
4
4
5
5
subprojects {
@@ -18,11 +18,7 @@ subprojects {
18
18
19
19
jvmTest {
20
20
dependencies {
21
- api(project(" :ktor-server:ktor-server-core" , configuration = " testOutput" ))
22
-
23
- // Version catalogs aren't accessible directly inside subprojects block
24
- // https://github.com/gradle/gradle/issues/16634#issuecomment-809345790
25
- api(rootProject.libs.logback.classic)
21
+ implementation(project(" :ktor-server:ktor-server-test-base" ))
26
22
}
27
23
}
28
24
}
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
+ */
4
+
1
5
description = " "
2
6
3
7
kotlin.sourceSets {
@@ -11,7 +15,6 @@ kotlin.sourceSets {
11
15
12
16
jvmTest {
13
17
dependencies {
14
- api(project(" :ktor-server:ktor-server-core" , configuration = " testOutput" ))
15
18
api(project(" :ktor-server:ktor-server-config-yaml" ))
16
19
implementation(libs.mockk)
17
20
implementation(libs.jakarta.servlet)
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
+ */
4
+
1
5
description = " "
2
6
3
7
kotlin.sourceSets {
@@ -10,7 +14,6 @@ kotlin.sourceSets {
10
14
11
15
jvmTest {
12
16
dependencies {
13
- api(project(" :ktor-server:ktor-server-core" , configuration = " testOutput" ))
14
17
api(project(" :ktor-server:ktor-server-config-yaml" ))
15
18
implementation(libs.mockk)
16
19
implementation(libs.javax.servlet)
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ kotlin.sourceSets {
19
19
api(project(" :ktor-client:ktor-client-apache" ))
20
20
api(project(" :ktor-network:ktor-network-tls:ktor-network-tls-certificates" ))
21
21
api(project(" :ktor-server:ktor-server-plugins:ktor-server-call-logging" ))
22
+
23
+ api(libs.logback.classic)
22
24
}
23
25
}
24
26
}
Original file line number Diff line number Diff line change
1
+ <!--
2
+ ~ Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
+ -->
4
+
1
5
<configuration >
2
6
<appender name =" STDOUT" class =" ch.qos.logback.core.ConsoleAppender" >
3
7
<encoder >
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
2
+ * Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
3
*/
4
4
5
5
description = " "
@@ -34,7 +34,6 @@ kotlin.sourceSets {
34
34
35
35
jvmTest {
36
36
dependencies {
37
- api(project(" :ktor-server:ktor-server-core" , configuration = " testOutput" ))
38
37
api(project(" :ktor-server:ktor-server-config-yaml" ))
39
38
api(libs.kotlin.test)
40
39
}
Original file line number Diff line number Diff line change @@ -25,12 +25,4 @@ kotlin.sourceSets {
25
25
implementation(project(" :ktor-server:ktor-server-plugins:ktor-server-request-validation" ))
26
26
}
27
27
}
28
-
29
- jvmTest {
30
- dependencies {
31
- api(project(" :ktor-server:ktor-server-core" , configuration = " testOutput" ))
32
-
33
- api(libs.logback.classic)
34
- }
35
- }
36
28
}
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
+ */
4
+
1
5
description = " "
2
6
3
7
plugins {
@@ -16,8 +20,6 @@ kotlin.sourceSets {
16
20
dependencies {
17
21
implementation(libs.jansi)
18
22
implementation(project(" :ktor-client:ktor-client-plugins:ktor-client-encoding" ))
19
- api(project(" :ktor-server:ktor-server-core" , configuration = " testOutput" ))
20
- api(libs.logback.classic)
21
23
api(project(" :ktor-server:ktor-server-plugins:ktor-server-sse" ))
22
24
}
23
25
}
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
+ */
4
+
1
5
description = " "
2
6
3
7
kotlin.sourceSets {
@@ -14,8 +18,6 @@ kotlin.sourceSets {
14
18
api(project(" :ktor-server:ktor-server-test-base" ))
15
19
api(project(" :ktor-server:ktor-server-test-suites" ))
16
20
api(project(" :ktor-server:ktor-server-core" ))
17
- api(project(" :ktor-server:ktor-server-core" , configuration = " testOutput" ))
18
- api(libs.logback.classic)
19
21
}
20
22
}
21
23
}
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
+ */
4
+
1
5
description = " "
2
6
3
7
kotlin.sourceSets {
@@ -14,8 +18,6 @@ kotlin.sourceSets {
14
18
api(project(" :ktor-server:ktor-server-test-base" ))
15
19
api(project(" :ktor-server:ktor-server-test-suites" ))
16
20
api(project(" :ktor-server:ktor-server-core" ))
17
- api(project(" :ktor-server:ktor-server-core" , configuration = " testOutput" ))
18
- api(libs.logback.classic)
19
21
}
20
22
}
21
23
}
You can’t perform that action at this time.
0 commit comments