Skip to content

Commit 52d6270

Browse files
committed
License and hosting
*Added license to the pom file. *Configuration to host succesfully as a dependency to github.
1 parent b0c93f5 commit 52d6270

12 files changed

+179
-37
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
This is a Java library wich provides a powerful tool for getting **weather information and forecasts** from any city you request.
88
The weather data comes from external APIs, like [Open Weather Map](http://http://openweathermap.org/).
99

10+
You must to be careful using this dependency in an Android application, because you have to call [ClimeT](https://github.com/malkomich/climet/blob/master/src/main/java/org/malkomich/climet/ClimeT.java) methods in an **Async Task** in order to avoid performing networking operations in the main thread. If you don't, you will get a *NetworkOnMainThreadException*.
11+
1012

1113
## Install
1214

@@ -20,7 +22,7 @@ The weather data comes from external APIs, like [Open Weather Map](http://http:/
2022

2123
```
2224
dependencies {
23-
provided 'com.github.malkomich:climet:1.0'
25+
compile 'com.github.malkomich:climet:1.0'
2426
}
2527
```
2628

23.3 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ed30c9ebbc0411dc7320d45d9ff70423
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2da9e5e94cce223287ace07befdba6ccaf1bcc75
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<groupId>org.malkomich</groupId>
6+
<artifactId>climet</artifactId>
7+
<version>1.0</version>
8+
<packaging>jar</packaging>
9+
10+
<name>Clime Tool API</name>
11+
<description>Weather library for Java applications</description>
12+
<url>https://github.com/malkomich/climet</url>
13+
14+
<properties>
15+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
17+
<java.version>1.7</java.version>
18+
</properties>
19+
20+
<distributionManagement>
21+
<repository>
22+
<id>repo</id>
23+
<name>Local Staging Repository</name>
24+
<url>file://${project.basedir}</url>
25+
</repository>
26+
</distributionManagement>
27+
28+
<dependencies>
29+
<dependency>
30+
<groupId>junit</groupId>
31+
<artifactId>junit</artifactId>
32+
<version>4.11</version>
33+
<scope>test</scope>
34+
</dependency>
35+
<dependency>
36+
<groupId>org.json</groupId>
37+
<artifactId>json</artifactId>
38+
<version>20140107</version>
39+
</dependency>
40+
41+
</dependencies>
42+
43+
<build>
44+
<plugins>
45+
<plugin>
46+
<groupId>org.apache.maven.plugins</groupId>
47+
<artifactId>maven-compiler-plugin</artifactId>
48+
<version>3.3</version>
49+
<configuration>
50+
<source>${java.version}</source>
51+
<target>${java.version}</target>
52+
<encoding>${project.build.sourceEncoding}</encoding>
53+
</configuration>
54+
</plugin>
55+
<plugin>
56+
<groupId>org.codehaus.mojo</groupId>
57+
<artifactId>license-maven-plugin</artifactId>
58+
<version>1.8</version>
59+
<executions>
60+
<execution>
61+
<id>download-licenses</id>
62+
<goals>
63+
<goal>download-licenses</goal>
64+
</goals>
65+
</execution>
66+
</executions>
67+
</plugin>
68+
<plugin>
69+
<artifactId>maven-assembly-plugin</artifactId>
70+
<configuration>
71+
<descriptorRefs>
72+
<descriptorRef>jar-with-dependencies</descriptorRef>
73+
</descriptorRefs>
74+
<archive>
75+
<manifest>
76+
<mainClass>fully.qualified.MainClass</mainClass>
77+
</manifest>
78+
</archive>
79+
</configuration>
80+
</plugin>
81+
</plugins>
82+
</build>
83+
84+
<developers>
85+
<developer>
86+
<name>Juan Carlos González</name>
87+
<email>[email protected]</email>
88+
<id>malkomich</id>
89+
</developer>
90+
</developers>
91+
92+
<scm>
93+
<connection>scm:git:https://github.com/malkomich/climet.git</connection>
94+
<developerConnection>scm:git:https://github.com/malkomich/climet.git
95+
</developerConnection>
96+
<url>https://github.com/malkomich/climet</url>
97+
</scm>
98+
</project>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8e00aeb67e17361a88ea4f7b70d67c32
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ad96d1885dcdc747574652ac034cea385f653149
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<metadata>
3+
<groupId>org.malkomich</groupId>
4+
<artifactId>climet</artifactId>
5+
<versioning>
6+
<release>1.0</release>
7+
<versions>
8+
<version>1.0</version>
9+
</versions>
10+
<lastUpdated>20151011115305</lastUpdated>
11+
</versioning>
12+
</metadata>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
41e749b51d9b7e11dabfefbc3fe16add
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
da707c37fbf5167aa395a5ba6df334ee868f91d5

0 commit comments

Comments
 (0)