-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,28 @@ | ||
plugins { | ||
id 'application' | ||
id 'maven-publish' | ||
id 'com.github.johnrengelman.shadow' version '6.1.0' | ||
} | ||
|
||
shadowJar { | ||
zip64 true | ||
mergeServiceFiles() | ||
exclude 'META-INF/*.RSA' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what are these excludes doing? There was a problem hiding this comment. Choose a reason for hiding this commentThe 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' | ||
// Not stubbing this out adds 'all' to the end of the jar's name. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jrhizor I had to add this so the names of the jars would line up. We either stub this out or we change the Cloud's dependency to be {module]-all.jar. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm it was able to consume the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh this is for the server Docker build? |
||
classifier = '' | ||
} | ||
|
||
publishing { | ||
publications { | ||
shadow(MavenPublication) { publication -> | ||
project.shadow.component(publication) | ||
} | ||
} | ||
repositories { | ||
mavenLocal() | ||
} | ||
} | ||
|
||
dependencies { | ||
|
@@ -52,8 +75,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() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shadow is back!!!