Skip to content

Commit

Permalink
allow publishing airbyte-server to local maven repo (#4717)
Browse files Browse the repository at this point in the history
* allow publishing airbyte-server to local maven repo

* Stub this out so the name that is created is airbyte-server-0.27.1-alpha.jar and not airbyte-server-0.27.1-alpha-all.jar.

* Add comments.

* see if this fixes build

Co-authored-by: Davin Chia <davinchia@gmail.com>
  • Loading branch information
jrhizor and davinchia committed Jul 13, 2021
1 parent 9b1aa3c commit 066db10
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion airbyte-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENV APPLICATION airbyte-server

WORKDIR /app

COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar
COPY build/distributions/${APPLICATION}-0*.tar ${APPLICATION}.tar

RUN mkdir latest_seeds
COPY build/config_init/resources/main/config latest_seeds
Expand Down
27 changes: 26 additions & 1 deletion airbyte-server/build.gradle
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'
exclude 'META-INF/*.SF'
exclude 'META-INF/*.DSA'
// Not stubbing this out adds 'all' to the end of the jar's name.
classifier = ''
}

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

dependencies {
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 066db10

Please sign in to comment.