@@ -2,8 +2,12 @@ apply plugin: 'java'
2
2
apply plugin : ' eclipse'
3
3
apply plugin : ' maven'
4
4
apply plugin : ' nexus'
5
+ apply plugin : ' signing'
5
6
6
7
group = " org.encog"
8
+ archivesBaseName = " encog"
9
+ version = " 3.4"
10
+
7
11
8
12
buildscript {
9
13
repositories {
@@ -39,6 +43,70 @@ task createWrapper(type: Wrapper) {
39
43
gradleVersion = ' 2.10'
40
44
}
41
45
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
+
42
110
task getVersion << {
43
111
println ' 3.4.0'
44
112
}
0 commit comments