-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbuild.gradle
149 lines (124 loc) · 3.58 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
apply plugin: "java"
apply plugin: "gwt-base"
apply plugin: "eclipse"
apply plugin: 'maven'
apply plugin: 'signing'
group = 'com.github.gwtreact'
archivesBaseName = 'gwt-react'
version = "1.0.0"
buildscript {
repositories {
jcenter() //repository where to fetch gwt gradle plugin
}
dependencies {
classpath "de.richsource.gradle.plugins:gwt-gradle-plugin:0.6" // GWT
}
}
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/google-snapshots/"
}
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceSets {
main {
java {
srcDir "src"
}
resources {
srcDir 'src'
}
}
}
compileJava{
//enable incremental compilation
options.incremental = true
//options.compilerArgs += ["-verbose"]
}
gwt {
gwtVersion "2.8.2"
eclipse.addGwtContainer = false;
minHeapSize = "512M";
maxHeapSize = "4096M";
dependencies {
gwt group: 'com.github.gwtreact', name: 'gwt-interop-utils', version: '1.0.0'
gwt group: 'com.google.jsinterop', name: 'base', version: '1.0.0-RC1'
gwt group: 'com.google.elemental2', name: 'elemental2-core', version: '1.0.0-RC1'
gwt group: 'com.google.elemental2', name: 'elemental2-dom', version: '1.0.0-RC1'
}
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
task myJavadocs(type: Javadoc) {
failOnError = false
options.memberLevel = JavadocMemberLevel.PUBLIC
source = sourceSets.main.java
//classpath = sourceSets.main.output + sourceSets.main.compileClasspath
}
task javadocJar(type: Jar, dependsOn: myJavadocs) {
classifier = 'javadoc'
from tasks.javadoc.destinationDir
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
file("build/libs/${archivesBaseName}-${version}.jar.asc")
file("build/libs/${archivesBaseName}-${version}-javadoc.jar.asc")
file("build/libs/${archivesBaseName}-${version}-sources.jar.asc")
}
jar {
from sourceSets.main.allJava
manifest {
attributes 'Implementation-Title': archivesBaseName,
'Implementation-Version': version
}
}
signing {
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment {
MavenDeployment deployment -> signing.signPom(deployment)
}
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
name 'gwt-react'
packaging 'jar'
description 'Provides Java GWT bindings for React'
url 'https://github.com/GWTReact/gwt-react'
scm {
connection 'https://github.com/GWTReact/gwt-react.git'
developerConnection 'https://github.com/GWTReact/gwt-react.git'
url 'https://github.com/GWTReact/gwt-react.git'
}
licenses {
license {
name 'MIT License'
url 'http://www.opensource.org/licenses/mit-license.php'
}
}
developers {
developer {
id 'pstockley'
name 'Paul Stockley'
email emailAddress
organization 'GWTReact'
organizationUrl 'https://github.com/GWTReact'
}
}
}
}
}
}