diff --git a/README.md b/README.md index 167a4a2..cbff22d 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,10 @@ png rasters, that can be served by your web server controllers. ## Installation +Library resides in jcenter repository. Use this line in case you use gradle: +``` +implementation 'ru.itmo.idu:kotlin-tile-renderer:1.0.0 +``` ## Usage The main entry point for the library is the TileRenderer class. It takes providers for geometries and styles diff --git a/build.gradle b/build.gradle index a9e1f87..c6e5a81 100644 --- a/build.gradle +++ b/build.gradle @@ -22,9 +22,7 @@ repositories { maven { url = "https://repo.osgeo.org/repository/release/" } - maven { - url = "https://dl.bintray.com/esmirnov/urban-research-lab-oss/" - } + jcenter() mavenCentral() } @@ -39,10 +37,25 @@ dependencies { testCompile group: 'junit', name: 'junit', version: '4.12' } +task sourcesJar(type: Jar) { + from sourceSets.main.allJava + classifier "sources" +} + publishing { publications { mavenJava(MavenPublication) { from components.java + artifact sourcesJar + groupId 'ru.itmo.idu' + artifactId 'kotlin-tile-renderer' + version '1.0.0' + pom.withXml { + def root = asNode() + root.appendNode('name', 'kotlin-tile-renderer') + root.appendNode('url', 'https://github.com/Urban-Research-Lab/kotlin-tile-renderer') + root.appendNode('description', 'Library for rendering XYZ raster tiles from JTS Geometry objects') + } } } }