Skip to content

Commit 515ec5a

Browse files
committed
Update build scripts
1 parent 1b15f3c commit 515ec5a

File tree

2 files changed

+53
-53
lines changed

2 files changed

+53
-53
lines changed

build.gradle

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -60,58 +60,6 @@ docs {
6060
sourceDir = project.file('src/docs')
6161
}
6262

63-
publishing {
64-
publications {
65-
maven(MavenPublication) {
66-
def projectName = project.name.split('-')*.capitalize().join(' ')
67-
groupId = project.group
68-
version = project.version
69-
70-
versionMapping {
71-
usage('java-api') {
72-
fromResolutionOf('runtimeClasspath')
73-
}
74-
usage('java-runtime') {
75-
fromResolutionResult()
76-
}
77-
}
78-
79-
from components.java
80-
81-
pom {
82-
name = projectName
83-
description = "Grace Data : $projectName"
84-
url = 'https://github.com/graceframework/grace-data'
85-
licenses {
86-
license {
87-
name = 'The Apache License, Version 2.0'
88-
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
89-
}
90-
}
91-
developers {
92-
developer {
93-
id = 'rainboyan'
94-
name = 'Michael Yan'
95-
96-
}
97-
}
98-
scm {
99-
connection = 'scm:git:git://github.com/graceframework/grace-data.git'
100-
developerConnection = 'scm:git:ssh://github.com:graceframework/grace-data.git'
101-
url = 'https://github.com/graceframework/grace-data/'
102-
}
103-
}
104-
}
105-
}
106-
}
107-
108-
afterEvaluate {
109-
signing {
110-
required = isReleaseVersion && gradle.taskGraph.hasTask("publish")
111-
sign publishing.publications.maven
112-
}
113-
}
114-
11563
nexusPublishing {
11664
repositories {
11765
sonatype {

buildSrc/src/main/groovy/grace.build.common.gradle

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,56 @@ checkstyle {
8484
codenarc {
8585
toolVersion = '3.6.0'
8686
config = resources.text.fromFile(rootProject.file("config/codenarc/codenarc.groovy"))
87-
}
87+
}
88+
89+
publishing {
90+
publications {
91+
maven(MavenPublication) {
92+
def projectName = project.name.split('-')*.capitalize().join(' ')
93+
groupId = project.group
94+
version = project.version
95+
96+
versionMapping {
97+
usage('java-api') {
98+
fromResolutionOf('runtimeClasspath')
99+
}
100+
usage('java-runtime') {
101+
fromResolutionResult()
102+
}
103+
}
104+
105+
from components.java
106+
107+
pom {
108+
name = projectName
109+
description = "Grace Data : $projectName"
110+
url = 'https://github.com/graceframework/grace-data'
111+
licenses {
112+
license {
113+
name = 'The Apache License, Version 2.0'
114+
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
115+
}
116+
}
117+
developers {
118+
developer {
119+
id = 'rainboyan'
120+
name = 'Michael Yan'
121+
122+
}
123+
}
124+
scm {
125+
connection = 'scm:git:git://github.com/graceframework/grace-data.git'
126+
developerConnection = 'scm:git:ssh://github.com:graceframework/grace-data.git'
127+
url = 'https://github.com/graceframework/grace-data/'
128+
}
129+
}
130+
}
131+
}
132+
}
133+
134+
afterEvaluate {
135+
signing {
136+
required = isReleaseVersion && gradle.taskGraph.hasTask("publish")
137+
sign publishing.publications.maven
138+
}
139+
}

0 commit comments

Comments
 (0)