Browse Source

Replace Gradle OSGi plugin for BND build tools (#730)

* Swap out JCenter for Maven Central and Gradle repos

* Deprecate use of OSGi Gradle plugin

Co-authored-by: Leonid Malikov <leonid@percival.co.uk>
pull/732/head
Leonid 3 years ago committed by GitHub
parent
commit
048d8d787a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      build.gradle
  2. 5
      gradle/binaryCompatibility.gradle
  3. 6
      json-path-assert/build.gradle
  4. 10
      json-path-web-test/build.gradle
  5. 8
      json-path/build.gradle

10
build.gradle

@ -1,10 +1,14 @@
buildscript { buildscript {
repositories { repositories {
jcenter() mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
} }
dependencies { dependencies {
classpath 'me.champeau.gradle:japicmp-gradle-plugin:0.1.0' classpath 'me.champeau.gradle:japicmp-gradle-plugin:0.1.0'
classpath 'com.github.jengelman.gradle.plugins:shadow:5.1.0' classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
classpath 'biz.aQute.bnd:biz.aQute.bnd.gradle:5.3.0'
} }
} }
@ -47,7 +51,7 @@ allprojects {
subprojects { subprojects {
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'signing' apply plugin: 'signing'
apply plugin: 'osgi' apply plugin: 'biz.aQute.bnd.builder'
sourceCompatibility = 1.8 sourceCompatibility = 1.8
targetCompatibility = 1.8 targetCompatibility = 1.8

5
gradle/binaryCompatibility.gradle

@ -21,7 +21,10 @@ import groovy.text.markup.TemplateConfiguration
buildscript { buildscript {
// this block should not be necessary, but for some reason it fails without! // this block should not be necessary, but for some reason it fails without!
repositories { repositories {
jcenter() mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
} }
dependencies { dependencies {

6
json-path-assert/build.gradle

@ -4,9 +4,9 @@ description = "Assertions on Json using JsonPath"
jar { jar {
baseName 'json-path-assert' baseName 'json-path-assert'
manifest { bnd (
attributes 'Implementation-Title': 'json-path-assert', 'Implementation-Version': version 'Implementation-Title': 'json-path-assert', 'Implementation-Version': version
} )
} }
dependencies { dependencies {

10
json-path-web-test/build.gradle

@ -18,11 +18,11 @@ task createBuildInfoFile {
jar { jar {
dependsOn createBuildInfoFile dependsOn createBuildInfoFile
baseName 'json-path-web-test' baseName 'json-path-web-test'
manifest { bnd (
attributes 'Implementation-Title': 'json-path-web-test', 'Implementation-Title': 'json-path-web-test',
'Implementation-Version': version, 'Implementation-Version': version,
'Main-Class': mainClassName 'Main-Class': mainClassName
} )
} }

8
json-path/build.gradle

@ -4,10 +4,10 @@ description = "Java port of Stefan Goessner JsonPath."
jar { jar {
baseName 'json-path' baseName 'json-path'
manifest { bnd (
attributes 'Implementation-Title': 'json-path', 'Implementation-Version': version 'Implementation-Title': 'json-path', 'Implementation-Version': version,
instruction 'Import-Package', 'org.json.*;resolution:=optional', 'com.google.gson.*;resolution:=optional', 'com.fasterxml.jackson.*;resolution:=optional', 'org.apache.tapestry5.json.*;resolution:=optional', 'org.codehaus.jettison.*;resolution:=optional', '*' 'Import-Package': 'org.json.*;resolution:=optional, com.google.gson.*;resolution:=optional, com.fasterxml.jackson.*;resolution:=optional, org.apache.tapestry5.json.*;resolution:=optional, org.codehaus.jettison.*;resolution:=optional, *'
} )
} }
dependencies { dependencies {

Loading…
Cancel
Save