1,9 → 1,73 |
apply plugin: 'war' |
apply plugin: "maven-publish" |
apply plugin: "signing" |
|
repositories { |
mavenCentral() |
} |
|
java { |
toolchain { |
languageVersion = JavaLanguageVersion.of(8) |
} |
} |
|
project.version "2.0.0-SNAPSHOT" |
group "net.brutex.xservices" |
|
publishing { |
publications { |
maven(MavenPublication) { |
from components.java |
} |
} |
repositories { |
|
maven { |
name = 'LocalRemote' |
def releasesRepoUrl = 'https://archiva.brutex.net/repository/internal/' |
def snapshotsRepoUrl = 'https://archiva.brutex.net/repository/snapshots/' |
url = project.version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl |
allowInsecureProtocol = false |
credentials { |
username = mavenuser |
password = mavenpass |
} |
} |
|
maven { |
name = 'OSSRH' |
def releasesRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/' |
def snapshotsRepoUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/' |
url = project.version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl |
credentials { |
username = ossrhUsername |
password = ossrhPassword |
} |
} |
|
maven { |
name = 'brutexGitea' |
def releasesRepoUrl = 'https://source.brutex.net/api/packages/brutex/maven' |
def snapshotsRepoUrl = 'https://source.brutex.net/api/packages/brutex/maven' |
url = project.version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl |
allowInsecureProtocol = false |
credentials { |
username = mavenuser |
password = mavenpass |
} |
} |
} |
} |
|
tasks.register('createDist', Zip) {Zip t -> |
archiveBaseName = project.name |
archiveVersion = version |
archiveExtension = "zip" |
destinationDirectory = new File(project.buildDir, "/distribution/") |
from war.outputs.files |
} |
|
dependencies { |
compileOnly "javax.servlet:javax.servlet-api:4.0.1" |
compileOnly "javax.ws.rs:javax.ws.rs-api:2.1.1" |
13,6 → 77,7 |
implementation "commons-net:commons-net:3.9.0" |
implementation "commons-beanutils:commons-beanutils:1.9.4" |
implementation "org.apache.httpcomponents:httpclient:4.5.14" |
implementation "org.apache.httpcomponents:fluent-hc:4.5.14" |
implementation "commons-io:commons-io:2.11.0" |
|
implementation "org.apache.ant:ant:1.10.13" |
41,7 → 106,7 |
implementation "org.apache.shiro:shiro-root:1.12.0" |
implementation "org.apache.shiro:shiro-web:1.12.0" |
|
implementation "org.apache.cxf:cxf:3.2.14" |
implementation "org.apache.cxf:cxf:3.4.10" |
implementation "org.apache.cxf:cxf-rt-databinding-aegis:3.2.14" |
|
runtimeOnly "org.apache.cxf:cxf-rt-transports-http:3.2.14" |