This commit is contained in:
parent
b6fdd7a5f6
commit
75f158a164
14
README.md
14
README.md
|
@ -7,8 +7,6 @@ A Java library to query <https://www.cvrapi.dk> (a Danish VAT API service).
|
||||||
[![Build Status](https://drone.data.coop/api/badges/nellemann/libcvrapi/status.svg)](https://drone.data.coop/nellemann/libcvrapi)
|
[![Build Status](https://drone.data.coop/api/badges/nellemann/libcvrapi/status.svg)](https://drone.data.coop/nellemann/libcvrapi)
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Include the [libcvrapi dependency](https://git.data.coop/nellemann/-/packages/maven/biz.nellemann.libs-libcvrapi/) into your Java project.
|
|
||||||
|
|
||||||
Lookup company by CVR number:
|
Lookup company by CVR number:
|
||||||
|
|
||||||
```java
|
```java
|
||||||
|
@ -19,6 +17,18 @@ System.out.println(company.life.name);
|
||||||
|
|
||||||
The *Company* represents most of the same properties as seen in the example JSON in the [api documentation](http://docs.rest.cvrapi.dk/).
|
The *Company* represents most of the same properties as seen in the example JSON in the [api documentation](http://docs.rest.cvrapi.dk/).
|
||||||
|
|
||||||
|
|
||||||
|
### Gradle
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven { url 'https://git.data.coop/api/packages/nellemann/maven' }
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile 'biz.nellemann.libs:libcvrapi:1.+'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
To build and test the code:
|
To build and test the code:
|
||||||
|
|
|
@ -14,7 +14,7 @@ dependencies {
|
||||||
implementation("com.squareup.okhttp3:okhttp:4.10.0")
|
implementation("com.squareup.okhttp3:okhttp:4.10.0")
|
||||||
|
|
||||||
testImplementation("org.slf4j:slf4j-simple:${slf4jVersion}")
|
testImplementation("org.slf4j:slf4j-simple:${slf4jVersion}")
|
||||||
testImplementation("com.squareup.okhttp3:mockwebserver:4.9.3")
|
testImplementation("com.squareup.okhttp3:mockwebserver:4.10.0")
|
||||||
testImplementation("org.codehaus.groovy:groovy-all:${groovyVersion}")
|
testImplementation("org.codehaus.groovy:groovy-all:${groovyVersion}")
|
||||||
testImplementation("org.spockframework:spock-core:${spockVersion}") {
|
testImplementation("org.spockframework:spock-core:${spockVersion}") {
|
||||||
exclude group: "org.codehaus.groovy"
|
exclude group: "org.codehaus.groovy"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
id = libcvrapi
|
id = libcvrapi
|
||||||
group = biz.nellemann.libs
|
group = biz.nellemann.libs
|
||||||
version = 1.0.11
|
version = 1.0.12
|
||||||
licenses = ['APACHE-2.0'] // or something else
|
licenses = ['APACHE-2.0'] // or something else
|
||||||
groovyVersion = 3.0.13
|
groovyVersion = 3.0.14
|
||||||
slf4jVersion = 2.0.6
|
slf4jVersion = 2.0.6
|
||||||
spockVersion = 2.3-groovy-3.0
|
spockVersion = 2.3-groovy-3.0
|
||||||
siteUrl = https://bitbucket.org/mnellemann/libcvrapi
|
siteUrl = https://bitbucket.org/mnellemann/libcvrapi
|
||||||
|
|
Loading…
Reference in a new issue