Skip to content

Commit 0e7ae19

Browse files
committed
add deploy to local artifactory
1 parent a88b801 commit 0e7ae19

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

CONTRIBUTING-DOCUMENTATION.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ the project root execute the following command:
1010

1111
./gradlew reference
1212

13+
To build and install to local maven repo run:
14+
15+
./gradlew install
16+
17+
To deploy to artifactory run install, then set user and password in gradle.properties and run:
18+
19+
./gradlew uploadArchives
20+
1321
the output will be available at `spring-framework/build/reference/htmlsingle/index.html`
1422

1523
== Live editing

build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,16 @@ configure(subprojects - project(":spring-build-src")) { subproject ->
254254
logging.captureStandardOutput LogLevel.INFO // suppress "## warnings" message
255255
}
256256

257+
uploadArchives {
258+
repositories {
259+
mavenDeployer {
260+
repository(url: "http://artifactory.cg.ru/artifactory/libs-releases-local") {
261+
authentication(userName: "${artifactory_user}", password: "${artifactory_password}")
262+
}
263+
}
264+
}
265+
}
266+
257267
task sourcesJar(type: Jar, dependsOn: classes) {
258268
classifier = 'sources'
259269
from sourceSets.main.allSource
@@ -400,6 +410,7 @@ project("spring-beans-groovy") {
400410

401411
// this module's Java and Groovy sources need to be compiled together
402412
compileJava.enabled=false
413+
uploadArchives.enabled = false
403414
sourceSets {
404415
main {
405416
groovy {
@@ -774,6 +785,7 @@ project("spring-orm") {
774785
project("spring-orm-hibernate4") {
775786
description = "Spring Object/Relational Mapping - Hibernate 4 support"
776787
merge.into = project(":spring-orm")
788+
uploadArchives.enabled = false
777789

778790
dependencies {
779791
provided(project(":spring-jdbc"))
@@ -792,6 +804,7 @@ project("spring-orm-hibernate4") {
792804
project("spring-orm-hibernate5") {
793805
description = "Spring Object/Relational Mapping - Hibernate 5 support"
794806
merge.into = project(":spring-orm")
807+
uploadArchives.enabled = false
795808

796809
dependencies {
797810
provided(project(":spring-jdbc"))
@@ -889,6 +902,7 @@ project("spring-webmvc") {
889902
project("spring-webmvc-tiles2") {
890903
description = "Spring Framework Tiles2 Integration"
891904
merge.into = project(":spring-webmvc")
905+
uploadArchives.enabled = false
892906

893907
dependencies {
894908
provided(project(":spring-context"))

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
version=4.3.1.RELEASE
2+
3+
artifactory_user=
4+
artifactory_password=

0 commit comments

Comments
 (0)