-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
87 lines (77 loc) · 2.45 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
@Suppress("DSL_SCOPE_VIOLATION") // IntelliJ incorrectly marks libs as not callable
plugins {
`maven-publish`
alias(libs.plugins.kotlinJvm)
alias(libs.plugins.kotlinSerialization)
alias(libs.plugins.dockerCompose)
alias(libs.plugins.gradlePluginPublish)
alias(libs.plugins.nemerosaVersioning)
}
group = "com.liftric"
version = with(versioning.info) {
if (branch == "HEAD" && dirty.not()) {
tag
} else {
full
}
}
repositories {
mavenCentral()
gradlePluginPortal()
}
sourceSets {
val main by getting
val integrationMain by creating {
compileClasspath += main.output
runtimeClasspath += main.output
}
}
tasks {
val test by existing
withType<Test> {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
systemProperty("org.gradle.testkit.dir", gradle.gradleUserHomeDir)
}
register<Test>("integrationTest") {
val integrationMain by sourceSets
description = "Runs the integration tests"
group = "verification"
testClassesDirs = integrationMain.output.classesDirs
classpath = integrationMain.runtimeClasspath
mustRunAfter(test)
useJUnitPlatform()
}
}
gradlePlugin {
val integrationMain by sourceSets
testSourceSets(integrationMain)
website.set("https://github.com/Liftric/s3-apt-repository-plugin")
vcsUrl.set("https://github.com/Liftric/s3-apt-repository-plugin")
plugins {
create("s3-apt-repository-plugin") {
id = "$group.s3-apt-repository-plugin"
implementationClass = "$group.apt.S3AptRepositoryPlugin"
displayName = "s3-apt-repository-plugin"
description = "A Gradle Plugin for managing an APT Repository on S3"
tags.set(listOf("s3", "apt", "repository", "debian"))
}
}
}
dependencies {
implementation(libs.kotlinStdlibJdk8)
implementation(libs.apacheCommons)
implementation(libs.xz)
implementation(libs.bouncyCastleGPG)
implementation(libs.bouncyCastleProvider)
implementation(libs.awsS3)
testImplementation(libs.junitJupiter)
testImplementation(libs.mockk)
"integrationMainImplementation"(gradleTestKit())
"integrationMainImplementation"(libs.junitJupiter)
"integrationMainImplementation"(libs.testContainersJUnit5)
"integrationMainImplementation"(libs.testContainersMain)
"integrationMainImplementation"(libs.minio)
}