build.gradle 1.27 KB
Newer Older
Gradl, Tobias's avatar
Gradl, Tobias committed
1
plugins {
Gradl, Tobias's avatar
Gradl, Tobias committed
2
	id 'java-library'
Gradl, Tobias's avatar
Gradl, Tobias committed
3
4
5
6
7
}

description = 'dariahsp - core library'

dependencies {
8
9
10
11
12
	api "de.unibamberg.minf.core:core-metamodel:$coreVersion"
	api "org.pac4j:spring-security-pac4j:$springPac4jVersion"
	api "org.pac4j:spring-webmvc-pac4j:$webmvcPac4jVersion"
	api "org.pac4j:pac4j-saml:$pac4jVersion"
	api "org.pac4j:pac4j-http:$pac4jVersion"
Gradl, Tobias's avatar
Gradl, Tobias committed
13
	implementation "org.springframework:spring-webmvc"
14
	implementation "javax.servlet:javax.servlet-api"
Gradl, Tobias's avatar
Gradl, Tobias committed
15
	
16
17
	compileOnly "org.projectlombok:lombok"
	annotationProcessor "org.projectlombok:lombok"
18
	
Gradl, Tobias's avatar
Gradl, Tobias committed
19
20
    testImplementation librarySets.commonTest
}
21
22
23

jar {
	enabled = true
Gradl, Tobias's avatar
Gradl, Tobias committed
24
25
}

26
27
28
29
task customFatJar(type: Jar) {
	manifest {
		attributes 'Main-Class': ' eu.dariah.de.dariahsp.BCryptPasswordCreator'
	}
30
31
32
33
34
35
36
37
	archiveClassifier = 'fatjar'
    dependsOn configurations.runtimeClasspath
    from {
        configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
    }
    exclude 'META-INF/*.RSA'
    exclude 'META-INF/*.SF'
    exclude 'META-INF/*.DSA'
38
39
40
41
42
43
44
45
	with jar
}

artifacts {
    archives customFatJar
}


Gradl, Tobias's avatar
Gradl, Tobias committed
46
47
48
49
50
51
publishing {
    publications {
        maven(MavenPublication) {
            from(components.java)
            artifact(sourcesJar) {}
            artifact(javadocJar) {}
52
            artifact(customFatJar) {}
Gradl, Tobias's avatar
Gradl, Tobias committed
53
54
        }
    }
55
}