forked from MarquezProject/marquez
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ci build for jvm modules (MarquezProject#915)
* Define submodules in settings.gradle Signed-off-by: wslulciuc <[email protected]> * Fix wrk dir for build-client-java job Signed-off-by: wslulciuc <[email protected]> * Add common build config to subprojects Signed-off-by: wslulciuc <[email protected]> * Add experimental marquez-spark to build Signed-off-by: wslulciuc <[email protected]> * Revert to jdk11 for java client Signed-off-by: wslulciuc <[email protected]> * Update build cmd for marquez-spark in ci Signed-off-by: wslulciuc <[email protected]> * continued: Update build cmd for marquez-spark in ci Signed-off-by: wslulciuc <[email protected]> * Ignore spotbugs globally Signed-off-by: wslulciuc <[email protected]> * Fix SparkAgentIntegrationTest Signed-off-by: wslulciuc <[email protected]> * Define projects in base build.gradle Signed-off-by: wslulciuc <[email protected]> * Push and build marquez-web image Signed-off-by: wslulciuc <[email protected]> * Fix shadow jar file name Signed-off-by: wslulciuc <[email protected]> * Update gradle cmds in CONTRIBUTING.md Signed-off-by: wslulciuc <[email protected]> * Update gradle cmds in README.md Signed-off-by: wslulciuc <[email protected]> * Update gradle cmds in Dockerfile Signed-off-by: wslulciuc <[email protected]> * Update api.jar location in README.md Signed-off-by: wslulciuc <[email protected]> * Update build step in README.md Signed-off-by: wslulciuc <[email protected]> * Add api as a module in README.md Signed-off-by: wslulciuc <[email protected]> * Add airflow as an example integration Signed-off-by: wslulciuc <[email protected]> * continued: Add airflow as an example integration Signed-off-by: wslulciuc <[email protected]>
- Loading branch information
Showing
24 changed files
with
490 additions
and
1,303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,6 @@ out/* | |
|
||
# Marquez configuration | ||
marquez.yml | ||
|
||
# jenv | ||
.java-version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
/* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer | ||
import org.apache.tools.ant.filters.* | ||
|
||
plugins { | ||
id 'maven-publish' | ||
id 'signing' | ||
id 'net.researchgate.release' version '2.8.1' | ||
} | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_11 | ||
targetCompatibility = JavaVersion.VERSION_11 | ||
} | ||
|
||
ext { | ||
dropwizardVersion = '2.0.15' | ||
jdbi3Version = '3.17.0' | ||
lombokVersion = '1.18.12' | ||
prometheusVersion = '0.9.0' | ||
} | ||
|
||
dependencies { | ||
compile "io.dropwizard:dropwizard-core:${dropwizardVersion}" | ||
compile "io.dropwizard:dropwizard-jdbi3:${dropwizardVersion}" | ||
compile "io.dropwizard:dropwizard-json-logging:${dropwizardVersion}" | ||
compile "io.dropwizard:dropwizard-http2:${dropwizardVersion}" | ||
compile "io.prometheus:simpleclient:${prometheusVersion}" | ||
compile "io.prometheus:simpleclient_dropwizard:${prometheusVersion}" | ||
compile "io.prometheus:simpleclient_hotspot:${prometheusVersion}" | ||
compile "io.prometheus:simpleclient_servlet:${prometheusVersion}" | ||
compile "org.jdbi:jdbi3-postgres:${jdbi3Version}" | ||
compile "org.jdbi:jdbi3-sqlobject:${jdbi3Version}" | ||
compile 'com.google.guava:guava:30.0-jre' | ||
compile 'org.flywaydb:flyway-core:6.3.0' | ||
compile 'org.postgresql:postgresql:42.2.5' | ||
compileOnly "org.projectlombok:lombok:${lombokVersion}" | ||
annotationProcessor "org.projectlombok:lombok:${lombokVersion}" | ||
|
||
testCompile project(':clients:java') | ||
testCompile "io.dropwizard:dropwizard-testing:${dropwizardVersion}" | ||
testCompile "org.jdbi:jdbi3-testing:${jdbi3Version}" | ||
testCompile 'junit:junit:4.12' | ||
testCompile 'org.assertj:assertj-core:3.11.1' | ||
testCompile 'org.mockito:mockito-core:3.3.3' | ||
testCompile 'org.testcontainers:postgresql:1.13.0' | ||
} | ||
|
||
task testUnit(type: Test) { | ||
useJUnit { | ||
includeCategories 'marquez.UnitTests' | ||
} | ||
} | ||
|
||
task testIntegration(type: Test) { | ||
useJUnit { | ||
includeCategories 'marquez.IntegrationTests' | ||
} | ||
} | ||
|
||
task testDataAccess(type: Test) { | ||
useJUnit { | ||
includeCategories 'marquez.DataAccessTests' | ||
} | ||
} | ||
|
||
release { | ||
git { | ||
requireBranch = 'main' | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
groupId = 'io.github.marquezproject' | ||
artifactId = 'marquez-api' | ||
|
||
from components.java | ||
|
||
artifact sourceJar | ||
artifact javadocJar | ||
|
||
pom { | ||
name = 'marquez' | ||
description = 'Collect, aggregate, and visualize a data ecosystem\'s metadata' | ||
url = 'https://github.com/MarquezProject/marquez' | ||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = 'marquezproject' | ||
name = 'Marquez Project' | ||
} | ||
} | ||
scm { | ||
connection = 'scm:git:git://github.com/MarquezProject/marquez.git' | ||
developerConnection = 'scm:git:ssh://github.com:MarquezProject/marquez.git' | ||
url = 'https://github.com/MarquezProject/marquez' | ||
} | ||
} | ||
} | ||
} | ||
|
||
processResources { | ||
filter ReplaceTokens, tokens: [ | ||
"version": project.property("version") | ||
] | ||
} | ||
|
||
repositories { | ||
maven { | ||
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2' | ||
credentials { | ||
username = System.getenv('SONATYPE_NEXUS_USERNAME') | ||
password = System.getenv('SONATYPE_NEXUS_PASSWORD') | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
required { isReleaseVersion } | ||
sign publishing.publications.mavenJava | ||
} | ||
|
||
|
||
mainClassName = 'marquez.MarquezApp' | ||
|
||
shadowJar { | ||
classifier = '' | ||
transform(ServiceFileTransformer) | ||
manifest { | ||
attributes( | ||
'Created-By': "Gradle ${gradle.gradleVersion}", | ||
'Built-By': System.getProperty('user.name'), | ||
'Build-Jdk': System.getProperty('java.version'), | ||
'Implementation-Title': project.name, | ||
'Implementation-Version': project.version, | ||
'Main-Class': mainClassName) | ||
} | ||
} | ||
|
||
runShadow { | ||
args = ['server', '../marquez.yml'] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.