Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#4661] improvement(iceberg-rest): Adding License and Notice to the i… #4909

Closed
wants to merge 10 commits into from
11 changes: 11 additions & 0 deletions iceberg/iceberg-rest-server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,19 @@ tasks {
from(configurations.runtimeClasspath)
into("build/libs")
}
val copyLicenseAndNotice by creating(Copy::class) {
from(rootDir) {
include("LICENSE")
include("NOTICE")
}
into("$buildDir/META-INF")
}
jar {
finalizedBy(copyDepends)
dependsOn(copyLicenseAndNotice)
}
compileTestJava {
dependsOn(copyLicenseAndNotice)
}

register("copyLibs", Copy::class) {
Expand Down
10 changes: 10 additions & 0 deletions server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,14 @@ tasks {
environment("GRAVITINO_HOME", rootDir.path)
environment("GRAVITINO_TEST", "true")
}
val copyLicenseAndNotice by creating(Copy::class) {
from(rootDir) {
include("LICENSE")
include("NOTICE")
}
into("$buildDir/META-INF")
}
jar {
dependsOn(copyLicenseAndNotice)
}
}