This repository has been archived by the owner on Nov 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
91 lines (76 loc) · 1.81 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath "org.wildfly.swarm:wildfly-swarm-plugin:1.0.0.Final"
}
}
apply from: 'http://plugins.jasoft.fi/vaadin.plugin'
apply plugin: 'wildfly-swarm'
apply plugin: 'war'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse-wtp'
apply plugin: 'idea'
sourceCompatibility = 1.8
group = "com.example"
version = "1.0"
[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
repositories {
mavenLocal()
mavenCentral()
maven {
url 'http://repository.jboss.org/nexus/content/groups/public'
}
}
ext {
VAADIN_VERSION = '7.6.8'
SWARM_VERSION = '1.0.0.Final'
}
swarm {
mainClassName = 'com.example.Main'
}
vaadin {
version VAADIN_VERSION
debug false
widgetset 'com.example.MyWidgetset'
gwt{
userAgent 'ie10,gecko1_8,safari'
}
}
dependencies {
compile group: 'com.vaadin', name: 'vaadin-cdi', version: '1.0.3'
compile group: 'com.vaadin', name: 'vaadin-themes', version: VAADIN_VERSION
compile group: 'org.wildfly.swarm', name: 'undertow', version: SWARM_VERSION
compile group: 'org.wildfly.swarm', name: 'cdi', version: SWARM_VERSION
testCompile group: 'junit', name: 'junit', version: '4.11'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.14.1'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
eclipse {
classpath {
downloadSources = true
downloadJavadoc = true
}
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}