forked from cmusphinx/sphinx4
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
112 lines (95 loc) · 2.86 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
//plugins {
// id "com.jfrog.bintray" version "1.7" //https://github.com/bintray/gradle-bintray-plugin#readme
//}
group = 'deepstupid'
version = '5prealpha'
//allprojects {
//// repositories {
//// jcenter()
//// }
// apply plugin: 'java'
//}
//bintray {
// user = property('user')
// key = property('key')
// configurations = ['archives']
// filesSpec {
// from 'build/libs', 'sphinx4-core/build/libs', 'sphinx4-data/build/libs'
// into '.'
// }
// pkg {
// repo = 'sphinx5'
// name = 'sphinx5'
// userOrg = 'deepstupid'
//
// //dryRun = true
// publish = true
// //override = true
//
// websiteUrl = 'https://github.com/deepstupid/sphinx5'
// issueTrackerUrl = 'https://github.com/deepstupid/sphinx5/issues'
// vcsUrl = 'https://github.com/deepstupid/sphinx5.git'
// licenses = ['AGPL-V3']
//
// publicDownloadNumbers = true
// githubRepo = 'deepstupid/sphinx5' //Optional Github repository
// githubReleaseNotesFile = 'README.md' //Optional Github readme file
//
// version {
// name = '5prealpha'
// desc = 'Sphinx5 Speech Recognition (Fork)'
// released = new Date()
// //vcsTag = '5prealpha-SNAPSHOT'
// attributes = ['gradle-plugin': 'deepstupid:deepstupid:sphinx5']
// }
//
// }
//
//}
//def getRepositoryUsername() {
// return hasProperty('mavenUsername') ? mavenUsername : ""
//}
//
//def getRepositoryPassword() {
// return hasProperty('mavenPassword') ? mavenPassword : ""
//}
allprojects() {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'idea'
// uploadArchives {
// repositories {
// mavenDeployer {
// repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
// authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
// }
// snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
// authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
// }
// }
// }
// }
repositories() {
mavenCentral()
jcenter()
}
compileJava.options.encoding = 'UTF-8'
javadoc.options.encoding = 'UTF-8'
// sourceCompatibility = 1.9
// targetCompatibility = 1.9
// task javadocs(type: Javadoc) {
// source = sourceSets.main.allJava
// failOnError = false
// }
//
// task javadocJar(type: Jar) {
// classifier = 'javadoc'
// from javadoc
// }
test.ignoreFailures = true
task packageSources(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts.archives packageSources//, javadocJar
}