-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (48 loc) · 1.25 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
sourceCompatibility = 1.6
group = 'org.easy-webflow'
version = '1.0.0-SNAPSHOT'
def localMavenRepo = new File('/home/marc/.m2/repository').toURL().toString()
defaultTasks "install"
repositories {
mavenRepo urls: localMavenRepo
mavenCentral()
}
configurations {
provided
}
/*jaki scope dependency powinienem ustawic ?? compile czy nowy provided ??
provided tylko ze wtedy bede mial bledy wiec narazie w compile*/
dependencies {
compile 'com.sun.faces:jsf-api:2.1.3' , 'javax.enterprise:cdi-api:1.0-SP4', 'javax.servlet:javax.servlet-api:3.0.1', 'javax.el:javax.el-api:2.2.1'
}
sourceSets {
main { compileClasspath += configurations.provided}
}
task targetJar(type: Jar){
manifest = project.manifest {
attributes("Implementation-Title": "Easy-webflow framework", "Implementation-Version": version)
}
from sourceSets.main.classesDir
}
artifacts {
archives targetJar
}
uploadArchives {
repositories.mavenDeployer {
repository(url: "file://home/marc/.m2/repository/")
/*nie dziala */
pom.project {
url = 'http://github.com/MarekMaj/easy-webflow'
developers {
developer {
id = 'MarekMaj'
name = 'Marek Maj'
email = '[email protected]'
}
}
}
}
}