Skip to content

Commit

Permalink
Merge pull request #25 from prakanth97/issue_6808
Browse files Browse the repository at this point in the history
Publish `data.jsondata-native`
  • Loading branch information
prakanth97 authored Aug 2, 2024
2 parents d894eda + eefde27 commit 8a7442a
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 8 deletions.
6 changes: 3 additions & 3 deletions ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
org = "ballerina"
name = "data.jsondata"
version = "0.1.1"
version = "0.2.0"
authors = ["Ballerina"]
keywords = ["json", "json path", "json-transform", "json transform", "json to json", "json-convert", "json convert"]
repository = "https://github.com/ballerina-platform/module-ballerina-data.jsondata"
Expand All @@ -15,8 +15,8 @@ graalvmCompatible = true
[[platform.java17.dependency]]
groupId = "io.ballerina.lib"
artifactId = "jsondata-native"
version = "0.1.1"
path = "../native/build/libs/data.jsondata-native-0.1.1-SNAPSHOT.jar"
version = "0.2.0"
path = "../native/build/libs/data.jsondata-native-0.2.0-SNAPSHOT.jar"

[[platform.java17.dependency]]
path = "./lib/json-path-2.9.0.jar"
Expand Down
2 changes: 1 addition & 1 deletion ballerina/CompilerPlugin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ id = "constraint-compiler-plugin"
class = "io.ballerina.lib.data.jsondata.compiler.JsondataCompilerPlugin"

[[dependency]]
path = "../compiler-plugin/build/libs/data.jsondata-compiler-plugin-0.1.1-SNAPSHOT.jar"
path = "../compiler-plugin/build/libs/data.jsondata-compiler-plugin-0.2.0-SNAPSHOT.jar"
2 changes: 1 addition & 1 deletion ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ modules = [
[[package]]
org = "ballerina"
name = "data.jsondata"
version = "0.1.1"
version = "0.2.0"
dependencies = [
{org = "ballerina", name = "constraint"},
{org = "ballerina", name = "file"},
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
org.gradle.caching=true
group=io.ballerina.lib
version=0.1.1-SNAPSHOT
version=0.2.0-SNAPSHOT
ballerinaLangVersion=2201.9.0

checkstyleToolVersion=10.12.0
Expand Down
22 changes: 22 additions & 0 deletions native/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,28 @@ spotbugsTest {
enabled = false
}

publishing {
publications {
mavenJava(MavenPublication) {
groupId project.group
artifactId "data.jsondata-native"
version = project.version
artifact jar
}
}

repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/ballerina-platform/module-ballerina-data.jsondata")
credentials {
username = System.getenv("publishUser")
password = System.getenv("publishPAT")
}
}
}
}

compileJava {
doFirst {
options.compilerArgs = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
public class DiagnosticLog {
private static final String ERROR_PREFIX = "error";
private static final String ERROR = "Error";
private static final ResourceBundle MESSAGES = ResourceBundle.getBundle("error", Locale.getDefault());
private static final ResourceBundle MESSAGES = ResourceBundle.getBundle("json_error", Locale.getDefault());

public static BError error(DiagnosticErrorCode code, Object... args) {
String msg = formatMessage(code, args);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"bundles":[{
"name":"error",
"name":"json_error",
"locales":[""]
}]
}
File renamed without changes.

0 comments on commit 8a7442a

Please sign in to comment.