Skip to content

Latest commit

 

History

History
executable file
·
89 lines (72 loc) · 2.17 KB

README.md

File metadata and controls

executable file
·
89 lines (72 loc) · 2.17 KB

Build Status Coverage Status Download

busca-cep-java-client

API Java para invocar a busca de CEPs dos Correios

#!/usr/bin/env groovy

@Grapes([
	@Grab('com.github.fabito:busca-cep-java-client:1.8')
])

import org.talesolutions.cep.CEPService
import org.talesolutions.cep.CEPServiceFactory

def buscaCEP = CEPServiceFactory.getCEPService()
def cep = buscaCEP.obtemPorNumeroCEP("13084440")

println cep

Setting up build tools

Gradle

repositories {
    maven {
        url  "http://dl.bintray.com/fabito/maven" 
    }
}
dependencies {
	compile 'com.github.fabito:busca-cep-java-client:1.8'
}

Maven

<?xml version='1.0' encoding='UTF-8'?>
<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd' xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<profiles>
	<profile>
		<repositories>
			<repository>
				<snapshots>
					<enabled>false</enabled>
				</snapshots>
				<id>bintray-fabito-maven</id>
				<name>bintray</name>
				<url>http://dl.bintray.com/fabito/maven</url>
			</repository>
		</repositories>
		<pluginRepositories>
			<pluginRepository>
				<snapshots>
					<enabled>false</enabled>
				</snapshots>
				<id>bintray-fabito-maven</id>
				<name>bintray-plugins</name>
				<url>http://dl.bintray.com/fabito/maven</url>
			</pluginRepository>
		</pluginRepositories>
		<id>bintray</id>
	</profile>
</profiles>
<activeProfiles>
	<activeProfile>bintray</activeProfile>
</activeProfiles>
</settings>
<dependency>
  <groupId>com.github.fabito</groupId>
  <artifactId>busca-cep-java-client</artifactId>
  <version>1.8</version>
</dependency>