forked from querqy/querqy-unplugged
-
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.
[build] publish lib in github maven repo
- Loading branch information
Showing
5 changed files
with
16 additions
and
138 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 |
---|---|---|
|
@@ -19,7 +19,6 @@ dependencies { | |
|
||
test { | ||
useJUnitPlatform() | ||
|
||
} | ||
|
||
tasks.register('testReport', TestReport) { | ||
|
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 |
---|---|---|
|
@@ -45,68 +45,6 @@ java { | |
sourceCompatibility = 11 | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
groupId = 'org.querqy' | ||
artifactId = 'querqy-unplugged-solr' | ||
version = "$version" | ||
|
||
from components.java | ||
|
||
versionMapping { | ||
usage('java-api') { | ||
fromResolutionOf('runtimeClasspath') | ||
} | ||
usage('java-runtime') { | ||
fromResolutionResult() | ||
} | ||
} | ||
pom { | ||
name = 'Querqy Unplugged Solr' | ||
description = 'A lightweight Solr plugin that allows the usage of some lucene queries via Solr JSON DSL' | ||
url = 'https://querqy.org' | ||
|
||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = 'jope' | ||
name = 'Johannes Peter' | ||
email = '[email protected]' | ||
} | ||
} | ||
scm { | ||
url = '[email protected]:querqy/querqy-unplugged.git' | ||
connection = 'scm:git:[email protected]:querqy/querqy-unplugged.git' | ||
developerConnection = 'scm:git:[email protected]:querqy/querqy-unplugged.git' | ||
} | ||
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
def releasesRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2' | ||
def snapshotsRepoUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/' | ||
|
||
name = 'sonatype' | ||
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl | ||
credentials(PasswordCredentials) | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
def signingKey = findProperty("signingKey") | ||
def signingPassword = findProperty("signingPassword") | ||
useInMemoryPgpKeys(signingKey, signingPassword) | ||
sign publishing.publications.mavenJava | ||
} | ||
|
||
|
||
javadoc { | ||
if(JavaVersion.current().isJava9Compatible()) { | ||
|
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,7 +12,7 @@ repositories { | |
|
||
allprojects { | ||
group = 'org.querqy' | ||
version = '1.0.1-SNAPSHOT' | ||
version = '1.0.1' | ||
} | ||
|
||
|
||
|
@@ -49,74 +49,12 @@ java { | |
sourceCompatibility = 11 | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
groupId = 'org.querqy' | ||
artifactId = 'querqy-unplugged' | ||
version = "$version" | ||
|
||
from components.java | ||
|
||
versionMapping { | ||
usage('java-api') { | ||
fromResolutionOf('runtimeClasspath') | ||
} | ||
usage('java-runtime') { | ||
fromResolutionResult() | ||
} | ||
} | ||
pom { | ||
name = 'Querqy Unplugged' | ||
description = 'A library to handle query rewriting outside of a search engine' | ||
url = 'https://querqy.org' | ||
|
||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = 'jope' | ||
name = 'Johannes Peter' | ||
email = '[email protected]' | ||
} | ||
} | ||
scm { | ||
url = '[email protected]:querqy/querqy-unplugged.git' | ||
connection = 'scm:git:[email protected]:querqy/querqy-unplugged.git' | ||
developerConnection = 'scm:git:[email protected]:querqy/querqy-unplugged.git' | ||
} | ||
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
def releasesRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2' | ||
def snapshotsRepoUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/' | ||
|
||
name = 'sonatype' | ||
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl | ||
credentials(PasswordCredentials) | ||
} | ||
} | ||
} | ||
|
||
jar { | ||
archiveBaseName = "${rootProject.name}" | ||
archiveVersion = "${project.version}" | ||
} | ||
|
||
/* | ||
signing { | ||
def signingKey = findProperty("signingKey") | ||
def signingPassword = findProperty("signingPassword") | ||
useInMemoryPgpKeys(signingKey, signingPassword) | ||
sign publishing.publications.mavenJava | ||
} | ||
*/ | ||
|
||
javadoc { | ||
if(JavaVersion.current().isJava9Compatible()) { | ||
|