Subversion Repositories XServices

Rev

Rev 199 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 199 Rev 201
Line 1... Line 1...
1
apply plugin: 'war'
1
apply plugin: 'war'
-
 
2
apply plugin: "maven-publish"
-
 
3
apply plugin: "signing"
Line 2... Line 4...
2
 
4
 
3
repositories {
5
repositories {
4
    mavenCentral()
6
    mavenCentral()
Line -... Line 7...
-
 
7
}
-
 
8
 
-
 
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
5
}
69
}
6
 
70
 
7
dependencies {
71
dependencies {
Line 8... Line 72...
8
    compileOnly "javax.servlet:javax.servlet-api:4.0.1"
72
    compileOnly "javax.servlet:javax.servlet-api:4.0.1"
9
    compileOnly "javax.ws.rs:javax.ws.rs-api:2.1.1"
73
    compileOnly "javax.ws.rs:javax.ws.rs-api:2.1.1"
10
 
74
 
11
    implementation "org.apache.commons:commons-configuration2:2.9.0"
75
    implementation "org.apache.commons:commons-configuration2:2.9.0"
12
    implementation "org.apache.commons:commons-lang3:3.12.0"
76
    implementation "org.apache.commons:commons-lang3:3.12.0"
-
 
77
    implementation "commons-net:commons-net:3.9.0"
13
    implementation "commons-net:commons-net:3.9.0"
78
    implementation "commons-beanutils:commons-beanutils:1.9.4"
Line 14... Line 79...
14
    implementation "commons-beanutils:commons-beanutils:1.9.4"
79
    implementation "org.apache.httpcomponents:httpclient:4.5.14"
15
    implementation "org.apache.httpcomponents:httpclient:4.5.14"
80
    implementation "org.apache.httpcomponents:fluent-hc:4.5.14"
16
    implementation "commons-io:commons-io:2.11.0"
81
    implementation "commons-io:commons-io:2.11.0"
Line 39... Line 104...
39
 
104
 
40
    implementation "org.apache.shiro:shiro-core:1.12.0"
105
    implementation "org.apache.shiro:shiro-core:1.12.0"
41
    implementation "org.apache.shiro:shiro-root:1.12.0"
106
    implementation "org.apache.shiro:shiro-root:1.12.0"
Line 42... Line 107...
42
    implementation "org.apache.shiro:shiro-web:1.12.0"
107
    implementation "org.apache.shiro:shiro-web:1.12.0"
43
 
108
 
Line 44... Line 109...
44
    implementation "org.apache.cxf:cxf:3.2.14"
109
    implementation "org.apache.cxf:cxf:3.4.10"
45
    implementation "org.apache.cxf:cxf-rt-databinding-aegis:3.2.14"
110
    implementation "org.apache.cxf:cxf-rt-databinding-aegis:3.2.14"
46
 
111