Skip to content

Commit

Permalink
🎉 v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Cleymax committed Apr 12, 2020
1 parent 753e1e8 commit 3e19b5a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Or get it from my personal repository:
<dependency>
<groupId>fr.cleymax</groupId>
<artifactId>CLibrary</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -70,7 +70,7 @@ maven {
}
// Add to dependencies
compile 'fr.cleymax:CLibrary:1.0.1'
compile 'fr.cleymax:CLibrary:1.0.2'
```

### Use
Expand All @@ -92,6 +92,26 @@ public class Main {
}
```

You can load several dependencies in one class.
```java
import fr.cleymax.clibrary.CLibrary;
import fr.cleymax.clibrary.Dependencies;
import fr.cleymax.clibrary.Dependency;

@Dependencies({
@Dependency(groupId = "com.google.code.gson", artifactId = "gson", version = "2.8.6"),
@Dependency(groupId = "com.googlecode.json-simple", artifactId = "json-simple", version = "1.1.1")
})
public class Main {

public static void main(String[] args)
{
final CLibrary library = new CLibrary(Main.class); //Initialize a new instance of `CLibrary`.
library.loads(); //Load all dependencies of the class that is set as a parameter when initializing the `CLibrary' instance.
}
}
```

You can choose where the dependencies are stored and downloaded.
```java
final CLibrary library = new CLibrary(Main.class, new File("dependancies/"));
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<revision>${build.version}-SNAPSHOT</revision>
<build.version>1.0.1</build.version>
<build.version>1.0.2</build.version>
</properties>

<profiles>
Expand Down
1 change: 1 addition & 0 deletions src/main/java/fr/cleymax/clibrary/Dependencies.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* File <b>Dependencies</b> located on fr.cleymax.clibrary is a part of CLibrary. Created the 12/04/2020
* <p>
* @author Clément P. (Cleymax) Class to load multiple dependencies.
* @since 1.0.2
*/
@Documented
@Target(TYPE)
Expand Down

0 comments on commit 3e19b5a

Please sign in to comment.