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 {
repositories {
jcenter()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
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 {
apply plugin: 'java'
apply plugin: 'signing'
apply plugin: 'osgi'
apply plugin: 'biz.aQute.bnd.builder'
sourceCompatibility = 1.8
targetCompatibility = 1.8

5
gradle/binaryCompatibility.gradle

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

6
json-path-assert/build.gradle

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

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

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

8
json-path/build.gradle

@ -4,10 +4,10 @@ description = "Java port of Stefan Goessner JsonPath."
jar {
baseName 'json-path'
manifest {
attributes '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', '*'
}
bnd (
'Implementation-Title': 'json-path', 'Implementation-Version': version,
'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 {

Loading…
Cancel
Save