Skip to content

Commit

Permalink
Add publishing jar
Browse files Browse the repository at this point in the history
Signed-off-by: zane-neo <[email protected]>
  • Loading branch information
zane-neo committed Nov 24, 2023
1 parent 4af150e commit 7760bed
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
38 changes: 38 additions & 0 deletions ppl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ plugins {
id "io.freefair.lombok"
id 'jacoco'
id 'antlr'
id 'maven-publish'
}

generateGrammarSource {
Expand Down Expand Up @@ -97,3 +98,40 @@ jacocoTestCoverageVerification {
}
}
check.dependsOn jacocoTestCoverageVerification

publishing {
publications {
mavenJava(MavenPublication) {
group = 'opensearch-sql'
artifactId = 'ppl'
from components.java
pom {
name = 'ppl'
description = 'OpenSearch PPL'
groupId = "org.opensearch.plugin"
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
name = 'OpenSearch'
url = 'https://github.com/opensearch-project/sql'
}
}
}
}
}
repositories {
maven {
name = "Snapshots" // optional target repository name
url = "https://aws.oss.sonatype.org/content/repositories/snapshots"
credentials {
username "$System.env.SONATYPE_USERNAME"
password "$System.env.SONATYPE_PASSWORD"
}
}
}
}
38 changes: 38 additions & 0 deletions protocol/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ plugins {
id 'java'
id "io.freefair.lombok"
id 'jacoco'
id 'maven-publish'
}

dependencies {
Expand Down Expand Up @@ -89,3 +90,40 @@ jacocoTestCoverageVerification {
}
check.dependsOn jacocoTestCoverageVerification
jacocoTestCoverageVerification.dependsOn jacocoTestReport

publishing {
publications {
mavenJava(MavenPublication) {
group = 'opensearch-sql'
artifactId = 'protocol'
from components.java
pom {
name = 'protocol'
description = 'OpenSearch PPL'
groupId = "org.opensearch.plugin"
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
name = 'OpenSearch'
url = 'https://github.com/opensearch-project/sql'
}
}
}
}
}
repositories {
maven {
name = "Snapshots" // optional target repository name
url = "https://aws.oss.sonatype.org/content/repositories/snapshots"
credentials {
username "$System.env.SONATYPE_USERNAME"
password "$System.env.SONATYPE_PASSWORD"
}
}
}
}

0 comments on commit 7760bed

Please sign in to comment.