Skip to content

Commit

Permalink
automatic testing
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Jun 7, 2024
1 parent 22a66a1 commit c5c80b2
Show file tree
Hide file tree
Showing 7 changed files with 306 additions and 189 deletions.
10 changes: 8 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ sourceSets.main {
runtimeClasspath += shared.output
}

sourceSets.test {
compileClasspath += shared.output
runtimeClasspath += shared.output
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
Expand Down Expand Up @@ -80,7 +85,7 @@ tasks.jar {
}

val annotationJar = tasks.register<Jar>("annotationJar") {
archiveClassifier.set("annotations")
archiveBaseName.set("expect-platform-annotations")
from(annotations.output)

manifest {
Expand All @@ -93,7 +98,8 @@ val annotationJar = tasks.register<Jar>("annotationJar") {
}

val agentShadeJar = tasks.register<ShadowJar>("agentShadowJar") {
archiveClassifier.set("agent")
archiveBaseName.set("expect-platform-agent")

from(agent.output, shared.output)

shadowContents.add(shade)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ abstract class ShadowJar : Jar() {

shadowContents.convention(mutableListOf()).finalizeValueOnRead()
relocatePackages.convention(mutableMapOf()).finalizeValueOnRead()
archiveClassifier.convention("all")
}

fun relocate(from: String, to: String) {
Expand Down
180 changes: 0 additions & 180 deletions expect-platform-test/build.gradle

This file was deleted.

Loading

0 comments on commit c5c80b2

Please sign in to comment.