Subversion Repositories XServices

Rev

Rev 199 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
198 brianR 1
apply plugin: 'war'
201 brianR 2
apply plugin: "maven-publish"
3
apply plugin: "signing"
198 brianR 4
 
5
repositories {
6
    mavenCentral()
7
}
8
 
201 brianR 9
java {
10
    toolchain {
11
        languageVersion = JavaLanguageVersion.of(8)
12
    }
13
}
14
 
15
project.version "2.0.0-SNAPSHOT"
16
group "net.brutex.xservices"
17
 
18
publishing {
19
    publications {
20
        maven(MavenPublication) {
21
            from components.java
22
        }
23
    }
24
    repositories {
25
 
26
        maven {
27
            name = 'LocalRemote'
28
            def releasesRepoUrl = 'https://archiva.brutex.net/repository/internal/'
29
            def snapshotsRepoUrl = 'https://archiva.brutex.net/repository/snapshots/'
30
            url = project.version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
31
            allowInsecureProtocol = false
32
            credentials {
33
                username = mavenuser
34
                password = mavenpass
35
            }
36
        }
37
 
38
        maven {
39
                name = 'OSSRH'
40
                def releasesRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
41
                def snapshotsRepoUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
42
                url = project.version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
43
                credentials {
44
                    username = ossrhUsername
45
                    password = ossrhPassword
46
                }
47
            }
48
 
49
        maven {
50
                    name = 'brutexGitea'
51
                    def releasesRepoUrl = 'https://source.brutex.net/api/packages/brutex/maven'
52
                    def snapshotsRepoUrl = 'https://source.brutex.net/api/packages/brutex/maven'
53
                    url = project.version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
54
                    allowInsecureProtocol = false
55
                    credentials {
56
                        username = mavenuser
57
                        password = mavenpass
58
                    }
59
                }
60
    }
61
}
62
 
63
tasks.register('createDist', Zip) {Zip t ->
64
    archiveBaseName = project.name
65
    archiveVersion = version
66
    archiveExtension = "zip"
67
    destinationDirectory = new File(project.buildDir, "/distribution/")
68
    from war.outputs.files
69
}
70
 
198 brianR 71
dependencies {
72
    compileOnly "javax.servlet:javax.servlet-api:4.0.1"
73
    compileOnly "javax.ws.rs:javax.ws.rs-api:2.1.1"
74
 
75
    implementation "org.apache.commons:commons-configuration2:2.9.0"
76
    implementation "org.apache.commons:commons-lang3:3.12.0"
77
    implementation "commons-net:commons-net:3.9.0"
78
    implementation "commons-beanutils:commons-beanutils:1.9.4"
199 brianR 79
    implementation "org.apache.httpcomponents:httpclient:4.5.14"
201 brianR 80
    implementation "org.apache.httpcomponents:fluent-hc:4.5.14"
199 brianR 81
    implementation "commons-io:commons-io:2.11.0"
198 brianR 82
 
83
    implementation "org.apache.ant:ant:1.10.13"
84
    implementation "org.apache.ant:ant-nodeps:1.8.1"
85
    implementation "org.apache.ant:ant-jsch:1.10.13"
86
    implementation "org.apache.ant:ant-commons-net:1.10.13"
87
    implementation "org.apache.ant:ant-javamail:1.10.13"
88
    implementation "org.apache.ant:ant-launcher:1.10.13"
89
 
90
    implementation "org.apache.commons:commons-jcs-core:2.2.1"
91
 
92
    implementation "org.quartz-scheduler:quartz:2.3.2"
93
 
199 brianR 94
    //implementation "org.apache.logging.log4j:log4j-core:2.20.0"
95
    //implementation "org.apache.logging.log4j:log4j-web:2.20.0"
96
    //implementation "org.apache.logging.log4j:log4j-1.2-api:2.20.0"
97
    //implementation "org.apache.logging.log4j:log4j-slf4j18-impl:2.18.0"
98
    implementation "org.slf4j:slf4j-api:2.0.7"
198 brianR 99
 
199 brianR 100
    runtimeOnly "org.slf4j:slf4j-simple:2.0.7"
101
 
198 brianR 102
    implementation "org.apache.ws.commons.axiom:axiom:1.2.22"
103
    implementation "org.apache.ws.commons.axiom:axiom-impl:1.2.22"
104
 
105
    implementation "org.apache.shiro:shiro-core:1.12.0"
106
    implementation "org.apache.shiro:shiro-root:1.12.0"
107
    implementation "org.apache.shiro:shiro-web:1.12.0"
108
 
201 brianR 109
    implementation "org.apache.cxf:cxf:3.4.10"
199 brianR 110
    implementation "org.apache.cxf:cxf-rt-databinding-aegis:3.2.14"
198 brianR 111
 
199 brianR 112
    runtimeOnly "org.apache.cxf:cxf-rt-transports-http:3.2.14"
113
    runtimeOnly "org.apache.cxf:cxf-rt-frontend-jaxrs:3.2.14"
114
    runtimeOnly "org.apache.cxf:cxf-rt-frontend-jaxws:3.2.14"
115
    runtimeOnly "org.apache.cxf:cxf-rt-security:3.2.14"
198 brianR 116
 
199 brianR 117
 
198 brianR 118
    implementation "rhino:js:1.7R2"
119
 
120
    implementation "org.springframework:spring-core:5.3.29"
121
    implementation "org.springframework:spring-context:5.3.29"
122
    implementation "org.springframework:spring-web:5.3.29"
123
 
199 brianR 124
    implementation "com.h2database:h2:2.2.222"
125
 
126
    implementation "com.sun.xml.bind:jaxb-impl:2.3.0.1"
127
    implementation "com.sun.xml.bind:jaxb-core:2.3.0.1"
128
 
198 brianR 129
    implementation fileTree(dir: "lib/", includes: ["*.jar"])
199 brianR 130
 
131
    annotationProcessor "org.projectlombok:lombok:1.18.28"
132
    compileOnly "org.projectlombok:lombok:1.18.28"
133
 
198 brianR 134
}