Skip to content

Commit db8fb79

Browse files
committed
Added publisher
1 parent 63d7eb9 commit db8fb79

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1+
![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/akvel/spring-xml-to-java-converter?include_prereleases)
12
[![Build Status](https://travis-ci.com/Akvel/spring-xml-to-java-converter.svg?branch=master)](https://travis-ci.com/Akvel/spring-xml-to-java-converter)
23
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Akvel_spring-xml-to-java-converter&metric=alert_status)](https://sonarcloud.io/dashboard?id=Akvel_spring-xml-to-java-converter)
4+
![GitHub all releases](https://img.shields.io/github/downloads/akvel/spring-xml-to-java-converter/total)
5+
![GitHub](https://img.shields.io/github/license/akvel/spring-xml-to-java-converter)
36

47
# spring-xml-to-java-converter
58
Tool for convert Spring xml configurations to Spring java based configurations.
69

710
Currently tested only on *java 11*
811

9-
Convertor does not has real bean classes, so it has some limitation:
12+
Converter does not has real bean classes, so it has some limitation:
1013
* Not convert bean configs with named construct-Args (because converter doesn't know constructor params order)
1114
* If constructor-arg does not has type attribute - value will be String type by default. Supported only String, Integer and Long
1215
* Property tag only support: ref and value

build.gradle

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@ plugins {
88
id 'net.researchgate.release' version '2.8.1'
99
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
1010
id "org.sonarqube" version "3.3"
11+
id "maven-publish"
1112
}
1213

14+
group = 'pro.akvel.spring.converter'
15+
version = '1.0.0'
16+
sourceCompatibility = 11
17+
targetCompatibility = 11
18+
1319

1420
jacoco {
1521
toolVersion = "0.8.5"
@@ -132,4 +138,23 @@ sonarqube {
132138
}
133139
}
134140

135-
jar.dependsOn test
141+
jar.dependsOn test
142+
143+
144+
publishing {
145+
repositories {
146+
maven {
147+
name = "GitHubPackages"
148+
url = uri("https://maven.pkg.github.com/Akvel/spring-xml-to-java-converter")
149+
credentials {
150+
username = System.getenv("USERNAME")
151+
password = System.getenv("TOKEN")
152+
}
153+
}
154+
}
155+
publications {
156+
gpr(MavenPublication) {
157+
from(components.java)
158+
}
159+
}
160+
}

src/main/java/pro/akvel/spring/converter/xml/ConfigurationDataConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import static java.util.Objects.requireNonNull;
2323

2424
/**
25-
* Convertor from {@link BeanDefinition} to {@link ConfigurationData}
25+
* Converter from {@link BeanDefinition} to {@link ConfigurationData}
2626
*
2727
* @author akvel
2828
* @since 22.10.2020

0 commit comments

Comments
 (0)