Skip to content

Commit

Permalink
chore: ⬆️ update deps versions (#29)
Browse files Browse the repository at this point in the history
* chore: ⬆️  update deps versions

* docs: 📝 apply licence

---------

Co-authored-by: Julien Boz <[email protected]>
  • Loading branch information
jboz and Julien Boz authored Jan 15, 2024
1 parent 266d960 commit b711940
Show file tree
Hide file tree
Showing 36 changed files with 249 additions and 223 deletions.
15 changes: 15 additions & 0 deletions DEV.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,18 @@ export SONATYPE_PASSWORD=titi

mvn clean deploy -P release --settings .release/settings.xml
```

## 3. Lost secret ?

Use this in github action :

```yaml
- name: Set env as secret
env:
MY_VAL: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
run: |
import os
for q in (os.getenv("MY_VAL")):
print(q)
shell: python
```
15 changes: 9 additions & 6 deletions README.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@ ifndef::imagesdir[:imagesdir: images]
:source-highlighter: coderay
:source-language: asciidoc

image:https://travis-ci.org/jboz/plantuml-builder.svg?branch=master["Build Status", link="https://travis-ci.org/jboz/plantuml-builder"]
image:https://img.shields.io/badge/PRs-welcome-brightgreen.svg["Make a pull request", link="http://makeapullrequest.com"]
image:https://img.shields.io/github/license/spotify/dockerfile-maven.svg[License]
image:https://maven-badges.herokuapp.com/maven-central/ch.ifocusit/plantuml-builder/badge.svg?style=flat["Maven Central", link="https://maven-badges.herokuapp.com/maven-central/ch.ifocusit/plantuml-builder"]

= Plantuml builder

Tools to generate plantuml diagram from java sources.
A tools to generate plantuml diagram from java sources.

This generated diagrams are an important part of the https://github.com/jboz/living-documentation[Living Documentation tool]
This tool is an important part of the https://github.com/jboz/living-documentation[Living Documentation tool].

== class diagram
Using a builder pattern, the class `ClassDiagramBuilder` give you many way to construct and customize the diagram.

== Class diagram example

This code :
[source,java]
Expand All @@ -26,7 +27,7 @@ String diagram = new ClassDiagramBuilder()
.build();
----

Will get :
Will generate this :

[source]
----
Expand Down Expand Up @@ -69,6 +70,8 @@ Price --> Devise : devise
@enduml
----

And if you render an image from this previous text file you will get :

image::class-diagram.png[Asciidoctor Diagram classes diagram]

=== For more uses cases, more options see https://github.com/jboz/plantuml-builder/blob/master/src/test/java/ch/ifocusit/plantuml/classdiagram/ClassDiagramBuilderTest.java[**ClassDiagramBuilderTest**] or https://github.com/jboz/plantuml-builder/blob/master/src/test/java/ch/ifocusit/plantuml/PlantUmlBuilderTest.java[**PlantUmlBuilderTest**] classes
=== For more uses cases and more options see https://github.com/jboz/plantuml-builder/blob/master/src/test/java/ch/ifocusit/plantuml/classdiagram/ClassDiagramBuilderTest.java[**ClassDiagramBuilderTest**] or https://github.com/jboz/plantuml-builder/blob/master/src/test/java/ch/ifocusit/plantuml/PlantUmlBuilderTest.java[**PlantUmlBuilderTest**] classes
41 changes: 20 additions & 21 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>ch.ifocusit</groupId>
Expand All @@ -11,8 +10,8 @@

<name>Plantuml builder</name>
<description>Plantuml diagram generation from java code sources.</description>
<url>https://plantuml-builder.ifocusit.ch</url>
<inceptionYear>2023</inceptionYear>
<url>https://github.com/jboz/plantuml-builder</url>
<inceptionYear>2024</inceptionYear>

<organization>
<name>Focus IT</name>
Expand Down Expand Up @@ -62,12 +61,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<version>3.12.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.0</version>
<version>3.2.5</version>
</plugin>
</plugins>
</build>
Expand All @@ -76,37 +75,37 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
<version>3.14.0</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>31.0-jre</version>
<version>33.0.0-jre</version>
</dependency>

<!-- test -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.9.2</version>
<version>5.10.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>5.9.2</version>
<version>5.10.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.24.2</version>
<version>3.25.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.11.0</version>
<version>2.15.1</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -132,10 +131,10 @@
</properties>
<build>
<plugins>
<plugin><!-- create source artifact -->
<plugin> <!-- create source artifact -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<version>3.3.0</version>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -145,10 +144,10 @@
</execution>
</executions>
</plugin>
<plugin><!-- create javadoc artifact -->
<plugin> <!-- create javadoc artifact -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.5.0</version>
<version>3.6.3</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand All @@ -158,10 +157,10 @@
</execution>
</executions>
</plugin>
<plugin><!-- Sign artifact -->
<plugin> <!-- Sign artifact -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<version>3.1.0</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand All @@ -172,9 +171,9 @@
</execution>
</executions>
</plugin>
<plugin><!-- create project artifact -->
<plugin> <!-- create project artifact -->
<artifactId>maven-release-plugin</artifactId>
<version>3.0.0</version>
<version>3.0.1</version>
<configuration>
<tagNameFormat>v@{project.version}</tagNameFormat>
<allowTimestampedSnapshots>true</allowTimestampedSnapshots>
Expand All @@ -197,7 +196,7 @@
<updateReleaseInfo>true</updateReleaseInfo>
</configuration>
</plugin>
<plugin><!-- Release dist files to maven central -->
<plugin> <!-- Release dist files to maven central -->
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*-
* Plantuml builder
*
* Copyright (C) 2023 Focus IT
* Copyright (C) 2024 Focus IT
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*-
* Plantuml builder
*
* Copyright (C) 2023 Focus IT
* Copyright (C) 2024 Focus IT
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*-
* Plantuml builder
*
* Copyright (C) 2023 Focus IT
* Copyright (C) 2024 Focus IT
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*-
* Plantuml builder
*
* Copyright (C) 2023 Focus IT
* Copyright (C) 2024 Focus IT
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
Expand Down Expand Up @@ -78,8 +78,10 @@ public String toString() {

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof Car)) return false;
if (this == o)
return true;
if (!(o instanceof Car))
return false;
Car car = (Car) o;
return Objects.equals(ignored, car.ignored)
&& Objects.equals(brand, car.brand)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*-
* Plantuml builder
*
* Copyright (C) 2023 Focus IT
* Copyright (C) 2024 Focus IT
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*-
* Plantuml builder
*
* Copyright (C) 2023 Focus IT
* Copyright (C) 2024 Focus IT
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
Expand Down
Loading

0 comments on commit b711940

Please sign in to comment.