|
1 | 1 | plugins {
|
2 | 2 | id 'java'
|
| 3 | + id 'maven-publish' |
3 | 4 | }
|
4 | 5 |
|
5 | 6 | dependencies {
|
6 | 7 | implementation project(':hoptimator-api')
|
7 | 8 | implementation libs.calcite.core
|
| 9 | + |
| 10 | + testImplementation(testFixtures(project(':hoptimator-jdbc'))) |
| 11 | + testImplementation(platform('org.junit:junit-bom:5.11.3')) |
| 12 | + testImplementation 'org.junit.jupiter:junit-jupiter' |
| 13 | + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' |
| 14 | + testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine' |
| 15 | +} |
| 16 | + |
| 17 | +test { |
| 18 | + useJUnitPlatform { |
| 19 | + excludeTags 'integration' |
| 20 | + } |
| 21 | + testLogging { |
| 22 | + events "passed", "skipped", "failed" |
| 23 | + } |
| 24 | +} |
| 25 | + |
| 26 | +publishing { |
| 27 | + repositories { |
| 28 | + maven { |
| 29 | + name 'GitHubPackages' |
| 30 | + url = 'https://maven.pkg.github.com/linkedin/Hoptimator' |
| 31 | + credentials { |
| 32 | + username = System.getenv('GITHUB_ACTOR') |
| 33 | + password = System.getenv('GITHUB_TOKEN') |
| 34 | + } |
| 35 | + } |
| 36 | + maven { |
| 37 | + name 'LinkedInJFrog' |
| 38 | + url 'https://linkedin.jfrog.io/artifactory/hoptimator' |
| 39 | + credentials { |
| 40 | + username = System.getenv('JFROG_USERNAME') |
| 41 | + password = System.getenv('JFROG_API_KEY') |
| 42 | + } |
| 43 | + } |
| 44 | + } |
| 45 | + publications { |
| 46 | + maven(MavenPublication) { |
| 47 | + groupId = 'com.linkedin.hoptimator' |
| 48 | + artifactId = 'hoptimator-util' |
| 49 | + version = System.getenv('VERSION') |
| 50 | + from components.java |
| 51 | + pom { |
| 52 | + name = 'hoptimator-util' |
| 53 | + description = 'Utilities to help with extending Hoptimator' |
| 54 | + url = 'https://github.com/linkedin/Hoptimator' |
| 55 | + licenses { |
| 56 | + license { |
| 57 | + name = 'BSD 2-Clause' |
| 58 | + url = 'https://raw.githubusercontent.com/linkedin/Hoptimator/main/LICENSE' |
| 59 | + } |
| 60 | + } |
| 61 | + scm { |
| 62 | + connection = 'scm:git:git://github.com:linkedin/Hoptimator.git' |
| 63 | + developerConnection = 'scm:git:ssh://github.com:linkedin/Hoptimator.git' |
| 64 | + url = 'https://github.com/linkedin/Hoptimator' |
| 65 | + } |
| 66 | + } |
| 67 | + } |
| 68 | + } |
8 | 69 | }
|
0 commit comments