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 5
/
Copy pathbuild.gradle
85 lines (76 loc) · 2.16 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
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 {
strict true
}
}
}
project(':addon') {
apply plugin: 'maven'
vaadin {
widgetset 'fi.jasoft.simplecalendar.SimpleCalendarWidgetset'
addon {
title 'SimpleCalendar'
license 'Apache 2.0'
author 'John Ahlroos'
}
}
task createAddonPom {
pom { artifactId = 'simplecalendar' }.writeTo("META-INF/maven/fi.jasoft/simplecalendar/pom.xml")
}
jar {
baseName 'simplecalendar'
sourceSets.main.java.srcDirs.each {
from it
}
}
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(':demo') {
dependencies {
compile project(':addon')
}
war {
archiveName = 'SimpleCalendar.war'
}
vaadin {
widgetset 'fi.jasoft.simplecalendar.demo.DemoWidgetset'
}
}