-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #570 from AndreKurait/MavenCentralArtifacts
Add Artifacts in format for maven central
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,15 @@ allprojects { | |
subprojects { | ||
apply plugin: 'java' | ||
apply plugin: 'maven-publish' | ||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
archiveClassifier.set('javadoc') | ||
from javadoc.destinationDir | ||
} | ||
task sourcesJar(type: Jar) { | ||
archiveClassifier.set('sources') | ||
from sourceSets.main.allSource | ||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | ||
} | ||
def excludedProjects = [ | ||
'buildSrc', | ||
'dockerSolution', | ||
|
@@ -21,6 +30,9 @@ subprojects { | |
publications { | ||
mavenJava(MavenPublication) { | ||
from components.java | ||
artifact javadocJar | ||
artifact sourcesJar | ||
|
||
|
||
group = 'org.opensearch.migrations.trafficcapture' | ||
version = '0.1.0' | ||
|
@@ -48,6 +60,11 @@ subprojects { | |
url = "https://github.com/opensearch-project/opensearch-migrations" | ||
} | ||
} | ||
scm { | ||
connection = "scm:[email protected]:opensearch-project/opensearch-migrations.git" | ||
developerConnection = "scm:[email protected]:opensearch-project/opensearch-migrations.git" | ||
url = "[email protected]:opensearch-project/opensearch-migrations.git" | ||
} | ||
} | ||
|
||
// Suppress POM metadata warnings for test fixtures | ||
|
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