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" implementation "org.apache.commons:commons-configuration2:2.9.0" implementation "org.apache.commons:commons-lang3:3.12.0" 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" implementation "org.apache.ant:ant-nodeps:1.8.1" implementation "org.apache.ant:ant-jsch:1.10.13" implementation "org.apache.ant:ant-commons-net:1.10.13" implementation "org.apache.ant:ant-javamail:1.10.13" implementation "org.apache.ant:ant-launcher:1.10.13" implementation "org.apache.commons:commons-jcs-core:2.2.1" implementation "org.quartz-scheduler:quartz:2.3.2" //implementation "org.apache.logging.log4j:log4j-core:2.20.0" //implementation "org.apache.logging.log4j:log4j-web:2.20.0" //implementation "org.apache.logging.log4j:log4j-1.2-api:2.20.0" //implementation "org.apache.logging.log4j:log4j-slf4j18-impl:2.18.0" implementation "org.slf4j:slf4j-api:2.0.7" runtimeOnly "org.slf4j:slf4j-simple:2.0.7" implementation "org.apache.ws.commons.axiom:axiom:1.2.22" implementation "org.apache.ws.commons.axiom:axiom-impl:1.2.22" implementation "org.apache.shiro:shiro-core:1.12.0" implementation "org.apache.shiro:shiro-root:1.12.0" implementation "org.apache.shiro:shiro-web:1.12.0" 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" runtimeOnly "org.apache.cxf:cxf-rt-frontend-jaxrs:3.2.14" runtimeOnly "org.apache.cxf:cxf-rt-frontend-jaxws:3.2.14" runtimeOnly "org.apache.cxf:cxf-rt-security:3.2.14" implementation "rhino:js:1.7R2" implementation "org.springframework:spring-core:5.3.29" implementation "org.springframework:spring-context:5.3.29" implementation "org.springframework:spring-web:5.3.29" implementation "com.h2database:h2:2.2.222" implementation "com.sun.xml.bind:jaxb-impl:2.3.0.1" implementation "com.sun.xml.bind:jaxb-core:2.3.0.1" implementation fileTree(dir: "lib/", includes: ["*.jar"]) annotationProcessor "org.projectlombok:lombok:1.18.28" compileOnly "org.projectlombok:lombok:1.18.28" }