This repository has been archived by the owner on Apr 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
108 lines (97 loc) · 2.69 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
allprojects {
group='fi.jasoft'
version = project.hasProperty('BUILD_VERSION') ? getProperty('BUILD_VERSION') : 'development';
}
subprojects {
apply from: 'http://plugins.jasoft.fi/vaadin.plugin'
apply plugin: 'eclipse-wtp'
sourceCompatibility = 1.6
targetCompatibility = 1.6
vaadin {
version '7.6.1'
gwt {
userAgent 'gecko1_8,safari'
strict true
}
}
}
project(':remote-connection'){
apply plugin: 'maven'
vaadin {
widgetset 'fi.jasoft.remoteconnection.RemoteConnectionWidgetset'
addon {
author 'John Ahlroos'
license 'Apache 2.0'
title 'RemoteConnection'
}
}
jar{
// Include source in jar
from sourceSets.main.allJava
}
task createAddonPom {
pom { artifactId = 'remote-connection' }.writeTo("META-INF/maven/fi.jasoft/remote-connection/pom.xml")
}
configurations {
deploy
}
dependencies {
deploy 'org.apache.maven.wagon:wagon-ssh:2.2'
}
artifacts {
archives jar
}
uploadArchives {
dependsOn createAddonPom
repositories.mavenDeployer {
def snapshotRepositoryUrl = System.getProperty('PLUGIN_MAVEN_SNAPSHOT_REPOSITORY')
def snapshotRepositoryUser = System.getProperty('PLUGIN_MAVEN_SNAPSHOT_REPOSITORY_USER')
def snapshotRepositoryPassword = System.getProperty('PLUGIN_MAVEN_SNAPSHOT_REPOSITORY_PASSWORD')
def snapshotRepositoryPrivateKey = System.getProperty('PLUGIN_MAVEN_SNAPSHOT_REPOSITORY_KEY')
configuration = configurations.deploy
snapshotRepository( url: snapshotRepositoryUrl ) {
authentication(
userName: snapshotRepositoryUser,
password: snapshotRepositoryPassword,
privateKey: snapshotRepositoryPrivateKey
)
}
addFilter('jar') {artifact, file ->
artifact.ext == 'jar'
}
}
}
}
project(':server-example'){
dependencies {
compile project(':remote-connection')
}
vaadin {
widgetset 'fi.jasoft.remoteconnection.ServerExampleWidgetset'
}
war {
archiveName = 'RemoteConnection-Server.war'
}
}
project(':client-example'){
dependencies {
compile project(path: ':remote-connection')
}
vaadin {
widgetset 'fi.jasoft.remoteconnection.ClientExampleWidgetset'
}
war {
archiveName = 'RemoteConnection-Client.war'
}
}
project(':chatroom'){
dependencies {
compile project(':remote-connection')
}
vaadin {
widgetset 'fi.jasoft.chatroom.ChatRoomWidgetset'
}
war {
archiveName = 'Chatroom.war'
}
}