Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Further clarification in project metadata configuration
Browse files Browse the repository at this point in the history
Also added deprecated 'uploadArchives' task depending on 'publish'.
  • Loading branch information
Marcin Zajaczkowski committed Feb 25, 2015
1 parent eb03da7 commit 28570e7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
13 changes: 10 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ext {
versionPrefix = "CD"
buildNrLoc = project.hasProperty('buildNr') ? "${buildNr}" : "000"
currentVersion = "${versionPrefix}-${buildNrLoc}"
projectGroupId = groupId
projectGroupId = 'com.ofg'

contractsDir = file("${project.rootDir}/repository/mappings/com/ofg/twitter-places-analyzer")
wiremockStubsOutputDirRoot = file("${project.buildDir}/production/${project.name}-stubs/")
Expand All @@ -38,6 +38,7 @@ ext {
//microInfraSpring and versions of other dependencies were moved to gradle.properties
}

group = projectGroupId
version = currentVersion

configurations {
Expand Down Expand Up @@ -227,12 +228,10 @@ publishing {
}
publications {
stubs(MavenPublication) {
groupId projectGroupId
artifactId "${project.name}-stubs"
artifact stubsJar
}
mavenJava(MavenPublication) {
groupId projectGroupId
from components.java
pom.withXml {
//Remove dependencies - everything is embedded in JAR created by Spring Boot
Expand All @@ -242,6 +241,14 @@ publishing {
}
}

task uploadArchives(dependsOn: 'publish') {
group "publishing"
description "DEPRECATED - Publishes produced archives - DEPRECATED - use 'publish' task"
doFirst {
logger.warn("DEPRECATION WARNING. Task 'uploadArchives' is deprecated. Use 'publish' task instead.")
}
}

wrapper {
gradleVersion '2.2.1'
}
3 changes: 1 addition & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
groupId=com.ofg
mavenUser=
mavenPassword=
mavenRepoUrl="http://nexus.4finance.net/content/repositories/Pipeline"
mavenRepoUrl=http://nexus.4finance.net/content/repositories/Pipeline
microInfraSpringVersion=0.8.10
jacksonMapper=1.9.13
gebVersion=0.10.0
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = 'boot-microservice'
3 changes: 2 additions & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ metrics.path:
country: pl
app: service-name

stubrunner.use-microservice-definitions: true

stubrunner.stubs:
repository.root: "http://dl.bintray.com/4finance/micro"
group: com.ofg
module: stub-runner-examples

0 comments on commit 28570e7

Please sign in to comment.