Skip to content

Commit

Permalink
Mods to create an official 1.1.0
Browse files Browse the repository at this point in the history
Attempt to create an official 1.1.0 version that can be published on Gradle Plugins. Pull request was ignore by original author and the repos seems abandoned.
  • Loading branch information
ascertrobw committed Dec 23, 2022
1 parent b9789d8 commit 886d9b8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
21 changes: 11 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* This file was generated by the Gradle 'init' task.
* Forked and extended version of original json2yaml:
*
* https://github.com/castocolina/json2yaml
*
* This generated file contains a sample Gradle plugin project to get you started.
* For more details take a look at the Writing Custom Plugins chapter in the Gradle
* User Manual available at https://docs.gradle.org/6.2.1/userguide/custom_plugins.html
* This version adds the reverse capability i.e. yaml to json
*/

plugins {
Expand All @@ -13,7 +13,7 @@ plugins {
// Apply the Groovy plugin to add support for Groovy
id 'groovy'

id 'com.gradle.plugin-publish' version '0.10.1'
id 'com.gradle.plugin-publish' version '1.1.0'
}

repositories {
Expand All @@ -36,21 +36,22 @@ dependencies {
testImplementation 'org.spockframework:spock-core:1.3-groovy-2.5'
}

version = "1.1.0-SNAPSHOT"
version = "1.1.1"
group = "com.ascert.open"

pluginBundle {
website = 'https://github.com/castocolina/json2yaml'
vcsUrl = 'https://github.com/castocolina/json2yaml'
website = 'https://github.com/ascertrobw/json2yaml'
vcsUrl = 'https://github.com/ascertrobw/json2yaml'
tags = ['json', 'yaml', 'converter', 'transform', 'json2yaml']
}

gradlePlugin {
// Define the plugin
plugins {
json2yaml {
id = 'dev.castocolina.json2yaml'
id = 'com.ascert.open.json2yaml'
displayName = 'JSON to YAML Plugin'
description = 'Plugin for JSON file convertion to YAML format'
description = 'Plugin for JSON file convertion to YAML format, and the reverse'
implementationClass = 'dev.castocolina.gradle.plugin.Json2YamlPlugin'
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class Json2YamlPluginFunctionalTest extends Specification {
new File(projectDir, "settings.gradle") << ""
new File(projectDir, "build.gradle") << """
plugins {
id('dev.castocolina.json2yaml')
id('com.ascert.open.json2yaml')
}
json2yaml.inputFile = project.file('../resources/functionalTest/sample.json')
json2yaml.outputFile = project.file('output.yaml')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Json2YamlPluginTest extends Specification {
def project = ProjectBuilder.builder().build()

when:
project.plugins.apply("dev.castocolina.json2yaml")
project.plugins.apply("com.ascert.open.json2yaml")

then:
(project.tasks.findByName("json2yaml") != null &&
Expand Down

0 comments on commit 886d9b8

Please sign in to comment.