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

allow publishing airbyte-server to local maven repo #4717

Merged
merged 4 commits into from
Jul 13, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion airbyte-server/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
plugins {
id 'application'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '6.1.0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shadow is back!!!

}

shadowJar {
zip64 true
mergeServiceFiles()
exclude 'META-INF/*.RSA'
Copy link
Contributor

@davinchia davinchia Jul 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what are these excludes doing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It removes signed certificates, which may conflict from some packages.

exclude 'META-INF/*.SF'
exclude 'META-INF/*.DSA'
}

publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
}
}
repositories {
mavenLocal()
}
}

dependencies {
Expand Down Expand Up @@ -52,8 +73,10 @@ task copySeed(type: Copy, dependsOn: [project(':airbyte-config:init').processRes
//project.tasks.copySeed.mustRunAfter(project(':airbyte-config:init').tasks.processResources)
assemble.dependsOn(project.tasks.copySeed)

mainClassName = 'io.airbyte.server.ServerApp'

application {
mainClass = 'io.airbyte.server.ServerApp'
mainClass = mainClassName
}

Properties env = new Properties()
Expand Down