Skip to content

Commit 48c880f

Browse files
committed
Updates to build for 3.4
1 parent 5b9d9a8 commit 48c880f

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

build.gradle

+68
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ apply plugin: 'java'
22
apply plugin: 'eclipse'
33
apply plugin: 'maven'
44
apply plugin: 'nexus'
5+
apply plugin: 'signing'
56

67
group = "org.encog"
8+
archivesBaseName = "encog"
9+
version = "3.4"
10+
711

812
buildscript {
913
repositories {
@@ -39,6 +43,70 @@ task createWrapper(type: Wrapper) {
3943
gradleVersion = '2.10'
4044
}
4145

46+
task javadocJar(type: Jar) {
47+
classifier = 'javadoc'
48+
from javadoc
49+
}
50+
51+
task sourcesJar(type: Jar) {
52+
classifier = 'sources'
53+
from sourceSets.main.allSource
54+
}
55+
56+
artifacts {
57+
archives javadocJar, sourcesJar
58+
}
59+
60+
signing {
61+
sign configurations.archives
62+
}
63+
64+
uploadArchives {
65+
repositories {
66+
mavenDeployer {
67+
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
68+
69+
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
70+
authentication(userName: ossrhUsername, password: ossrhPassword)
71+
}
72+
73+
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
74+
authentication(userName: ossrhUsername, password: ossrhPassword)
75+
}
76+
77+
pom.project {
78+
name 'Example Application'
79+
packaging 'jar'
80+
artifactId 'encog-core' // optionally artifactId can be defined here
81+
description 'Encog Machine Learning Framework.'
82+
url 'http://www.heatonresearch.com/encog/'
83+
84+
scm {
85+
connection 'https://github.com/encog/encog-java-core'
86+
developerConnection '[email protected]:encog/encog-java-core.git'
87+
url 'http://code.google.com/p/encog-java/source/browse/'
88+
89+
}
90+
91+
licenses {
92+
license {
93+
name 'The Apache License, Version 2.0'
94+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
95+
}
96+
}
97+
98+
developers {
99+
developer {
100+
id 'jeffheatondotcom'
101+
name 'Jeff Heaton'
102+
103+
}
104+
}
105+
}
106+
}
107+
}
108+
}
109+
42110
task getVersion << {
43111
println '3.4.0'
44112
}

0 commit comments

Comments
 (0)