mirror of
https://github.com/corda/corda.git
synced 2024-12-20 05:28:21 +00:00
CORDA-840: Gradle plugins are now able to be published to artifactory. (#2203)
Gradle plugins are now able to be published to artifactory.
This commit is contained in:
parent
e0abcda13b
commit
1375084936
@ -49,6 +49,7 @@ buildscript {
|
|||||||
ext.beanutils_version = '1.9.3'
|
ext.beanutils_version = '1.9.3'
|
||||||
ext.crash_version = 'cce5a00f114343c1145c1d7756e1dd6df3ea984e'
|
ext.crash_version = 'cce5a00f114343c1145c1d7756e1dd6df3ea984e'
|
||||||
ext.jsr305_version = constants.getProperty("jsr305Version")
|
ext.jsr305_version = constants.getProperty("jsr305Version")
|
||||||
|
ext.artifactory_plugin_version = constants.getProperty('artifactoryPluginVersion')
|
||||||
|
|
||||||
// Update 121 is required for ObjectInputFilter and at time of writing 131 was latest:
|
// Update 121 is required for ObjectInputFilter and at time of writing 131 was latest:
|
||||||
ext.java8_minUpdateVersion = '131'
|
ext.java8_minUpdateVersion = '131'
|
||||||
@ -72,6 +73,7 @@ buildscript {
|
|||||||
classpath "org.ajoberstar:grgit:1.1.0"
|
classpath "org.ajoberstar:grgit:1.1.0"
|
||||||
classpath "net.i2p.crypto:eddsa:$eddsa_version" // Needed for ServiceIdentityGenerator in the build environment.
|
classpath "net.i2p.crypto:eddsa:$eddsa_version" // Needed for ServiceIdentityGenerator in the build environment.
|
||||||
classpath "org.owasp:dependency-check-gradle:${dependency_checker_version}"
|
classpath "org.owasp:dependency-check-gradle:${dependency_checker_version}"
|
||||||
|
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:$artifactory_plugin_version"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,7 +82,6 @@ plugins {
|
|||||||
// but the DSL has some restrictions e.g can't be used on the allprojects section. So we should revisit this if there are improvements in Gradle.
|
// but the DSL has some restrictions e.g can't be used on the allprojects section. So we should revisit this if there are improvements in Gradle.
|
||||||
// Version 1.0.2 of this plugin uses capsule:1.0.1
|
// Version 1.0.2 of this plugin uses capsule:1.0.1
|
||||||
id "us.kirchmeier.capsule" version "1.0.2"
|
id "us.kirchmeier.capsule" version "1.0.2"
|
||||||
id "com.jfrog.artifactory" version "4.4.18"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
@ -92,6 +93,7 @@ apply plugin: 'com.github.ben-manes.versions'
|
|||||||
apply plugin: 'net.corda.plugins.publish-utils'
|
apply plugin: 'net.corda.plugins.publish-utils'
|
||||||
apply plugin: 'net.corda.plugins.cordformation'
|
apply plugin: 'net.corda.plugins.cordformation'
|
||||||
apply plugin: 'maven-publish'
|
apply plugin: 'maven-publish'
|
||||||
|
apply plugin: 'com.jfrog.artifactory'
|
||||||
|
|
||||||
// We need the following three lines even though they're inside an allprojects {} block below because otherwise
|
// We need the following three lines even though they're inside an allprojects {} block below because otherwise
|
||||||
// IntelliJ gets confused when importing the project and ends up erasing and recreating the .idea directory, along
|
// IntelliJ gets confused when importing the project and ends up erasing and recreating the .idea directory, along
|
||||||
|
@ -5,3 +5,4 @@ guavaVersion=21.0
|
|||||||
bouncycastleVersion=1.57
|
bouncycastleVersion=1.57
|
||||||
typesafeConfigVersion=1.3.1
|
typesafeConfigVersion=1.3.1
|
||||||
jsr305Version=3.0.2
|
jsr305Version=3.0.2
|
||||||
|
artifactoryPluginVersion=4.4.18
|
@ -1,5 +1,6 @@
|
|||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'net.corda.plugins.publish-utils'
|
apply plugin: 'net.corda.plugins.publish-utils'
|
||||||
|
apply plugin: 'com.jfrog.artifactory'
|
||||||
|
|
||||||
description "Generates a summary of the artifact's public API"
|
description "Generates a summary of the artifact's public API"
|
||||||
|
|
||||||
|
@ -7,11 +7,14 @@ buildscript {
|
|||||||
file("$projectDir/../constants.properties").withInputStream { constants.load(it) }
|
file("$projectDir/../constants.properties").withInputStream { constants.load(it) }
|
||||||
|
|
||||||
// If you bump this version you must re-bootstrap the codebase. See the README for more information.
|
// If you bump this version you must re-bootstrap the codebase. See the README for more information.
|
||||||
ext.gradle_plugins_version = constants.getProperty("gradlePluginsVersion")
|
ext {
|
||||||
ext.bouncycastle_version = constants.getProperty("bouncycastleVersion")
|
gradle_plugins_version = constants.getProperty("gradlePluginsVersion")
|
||||||
ext.typesafe_config_version = constants.getProperty("typesafeConfigVersion")
|
bouncycastle_version = constants.getProperty("bouncycastleVersion")
|
||||||
ext.jsr305_version = constants.getProperty("jsr305Version")
|
typesafe_config_version = constants.getProperty("typesafeConfigVersion")
|
||||||
ext.kotlin_version = constants.getProperty("kotlinVersion")
|
jsr305_version = constants.getProperty("jsr305Version")
|
||||||
|
kotlin_version = constants.getProperty("kotlinVersion")
|
||||||
|
artifactory_plugin_version = constants.getProperty('artifactoryPluginVersion')
|
||||||
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
@ -22,10 +25,12 @@ buildscript {
|
|||||||
classpath "net.corda.plugins:publish-utils:$gradle_plugins_version"
|
classpath "net.corda.plugins:publish-utils:$gradle_plugins_version"
|
||||||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
|
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
|
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:$artifactory_plugin_version"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'net.corda.plugins.publish-utils'
|
apply plugin: 'net.corda.plugins.publish-utils'
|
||||||
|
apply plugin: 'com.jfrog.artifactory'
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
version gradle_plugins_version
|
version gradle_plugins_version
|
||||||
@ -54,3 +59,25 @@ bintrayConfig {
|
|||||||
email = 'dev@corda.net'
|
email = 'dev@corda.net'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
artifactory {
|
||||||
|
publish {
|
||||||
|
contextUrl = 'https://ci-artifactory.corda.r3cev.com/artifactory'
|
||||||
|
repository {
|
||||||
|
repoKey = 'corda-dev'
|
||||||
|
username = 'teamcity'
|
||||||
|
password = System.getenv('CORDA_ARTIFACTORY_PASSWORD')
|
||||||
|
}
|
||||||
|
|
||||||
|
defaults {
|
||||||
|
// Publish utils does not have a publish block because it would be circular for it to apply it's own
|
||||||
|
// extensions to itself
|
||||||
|
if(project.name == 'publish-utils') {
|
||||||
|
publications('publishUtils')
|
||||||
|
// Root project applies the plugin (for this block) but does not need to be published
|
||||||
|
} else if(project != rootProject) {
|
||||||
|
publications(project.extensions.publish.name())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,5 +1,6 @@
|
|||||||
apply plugin: 'kotlin'
|
apply plugin: 'kotlin'
|
||||||
apply plugin: 'net.corda.plugins.publish-utils'
|
apply plugin: 'net.corda.plugins.publish-utils'
|
||||||
|
apply plugin: 'com.jfrog.artifactory'
|
||||||
|
|
||||||
description 'Turns a project into a cordapp project that produces cordapp fat JARs'
|
description 'Turns a project into a cordapp project that produces cordapp fat JARs'
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'maven-publish'
|
apply plugin: 'maven-publish'
|
||||||
apply plugin: 'net.corda.plugins.publish-utils'
|
apply plugin: 'net.corda.plugins.publish-utils'
|
||||||
|
apply plugin: 'com.jfrog.artifactory'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
@ -10,6 +10,7 @@ buildscript {
|
|||||||
|
|
||||||
apply plugin: 'kotlin'
|
apply plugin: 'kotlin'
|
||||||
apply plugin: 'net.corda.plugins.publish-utils'
|
apply plugin: 'net.corda.plugins.publish-utils'
|
||||||
|
apply plugin: 'com.jfrog.artifactory'
|
||||||
|
|
||||||
description 'A small gradle plugin for adding some basic Quasar tasks and configurations to reduce build.gradle bloat.'
|
description 'A small gradle plugin for adding some basic Quasar tasks and configurations to reduce build.gradle bloat.'
|
||||||
|
|
||||||
|
@ -1,13 +1,17 @@
|
|||||||
apply plugin: 'groovy'
|
apply plugin: 'groovy'
|
||||||
apply plugin: 'maven-publish'
|
apply plugin: 'maven-publish'
|
||||||
apply plugin: 'com.jfrog.bintray'
|
apply plugin: 'com.jfrog.bintray'
|
||||||
|
apply plugin: 'com.jfrog.artifactory'
|
||||||
|
|
||||||
// Used for bootstrapping project
|
// Used for bootstrapping project
|
||||||
buildscript {
|
buildscript {
|
||||||
Properties constants = new Properties()
|
Properties constants = new Properties()
|
||||||
file("../../constants.properties").withInputStream { constants.load(it) }
|
file("../../constants.properties").withInputStream { constants.load(it) }
|
||||||
|
|
||||||
ext.gradle_plugins_version = constants.getProperty("gradlePluginsVersion")
|
ext {
|
||||||
|
gradle_plugins_version = constants.getProperty("gradlePluginsVersion")
|
||||||
|
artifactory_plugin_version = constants.getProperty('artifactoryPluginVersion')
|
||||||
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
jcenter()
|
||||||
@ -15,6 +19,7 @@ buildscript {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
|
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
|
||||||
|
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:$artifactory_plugin_version"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
apply plugin: 'groovy'
|
apply plugin: 'groovy'
|
||||||
apply plugin: 'maven-publish'
|
apply plugin: 'maven-publish'
|
||||||
apply plugin: 'net.corda.plugins.publish-utils'
|
apply plugin: 'net.corda.plugins.publish-utils'
|
||||||
|
apply plugin: 'com.jfrog.artifactory'
|
||||||
|
|
||||||
description 'A small gradle plugin for adding some basic Quasar tasks and configurations to reduce build.gradle bloat.'
|
description 'A small gradle plugin for adding some basic Quasar tasks and configurations to reduce build.gradle bloat.'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user