build.gradle 1.16 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"
Gradl, Tobias's avatar
Gradl, Tobias committed
14
15
16
17
	implementation "javax.servlet:javax.servlet-api:$servletApiVersion"
	
	compileOnly "org.projectlombok:lombok:$lombokVersion"
	annotationProcessor "org.projectlombok:lombok:$lombokVersion"
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
30
31
32
33
34
35
36
37
38
39
task customFatJar(type: Jar) {
	manifest {
		attributes 'Main-Class': ' eu.dariah.de.dariahsp.BCryptPasswordCreator'
	}
	archiveBaseName = 'dariahsp-core-fatjar'
	from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
	with jar
}

artifacts {
    archives customFatJar
}


Gradl, Tobias's avatar
Gradl, Tobias committed
40
41
42
43
44
45
publishing {
    publications {
        maven(MavenPublication) {
            from(components.java)
            artifact(sourcesJar) {}
            artifact(javadocJar) {}
46
            artifact(customFatJar) {}
Gradl, Tobias's avatar
Gradl, Tobias committed
47
48
        }
    }
49
}