Skip to content

Commit dd68ace

Browse files
copy publishing task from root project (#22153)
1 parent c8061c0 commit dd68ace

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

airbyte-featureflag/build.gradle.kts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
33

44
plugins {
55
`java-library`
6+
`maven-publish`
67
kotlin("jvm") version "1.8.0"
78
kotlin("kapt") version "1.8.0"
89
}
@@ -37,3 +38,17 @@ tasks.withType<KotlinCompile> {
3738
tasks.test {
3839
useJUnitPlatform()
3940
}
41+
42+
publishing {
43+
repositories {
44+
publications {
45+
create<MavenPublication>("${project.name}") {
46+
groupId = "{$project.group}"
47+
artifactId = "${project.name}"
48+
version = "${rootProject.version}"
49+
repositories.add(rootProject.repositories.getByName("cloudrepo"))
50+
from(components["java"])
51+
}
52+
}
53+
}
54+
}

0 commit comments

Comments
 (0)