Skip to content

Commit

Permalink
move away from multi-module project
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-grgt committed Mar 20, 2024
1 parent 65a4f06 commit e467f9f
Show file tree
Hide file tree
Showing 42 changed files with 529 additions and 345 deletions.
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
# Bob
# 👷‍ Bob
Lightweight Builder generator for Java

## Why Bob?

Bob serves as a lightweight alternative to Lombok's `@Builder` annotation.
Bob serves as a lightweight alternative to Lombok's @Builder annotation. Its retention policy is SOURCE, ensuring it won't clutter your bytecode. Bob generates a builder in the form of a pure Java source code file, which the Java compiler can pick up as a regular source file.

## Installation

```xml
<dependency>
<groupId>io.jonasg</groupId>
<artifactId>bob</artifactId>
<version>${bob.version}</version>
</dependency>
```

## Getting Started

Annotate the class you which to build with `@Buildable`
Annotate the class you which to be able to build with `@Buildable`

```java
package my.garage;
Expand Down Expand Up @@ -63,6 +73,10 @@ The car will be instantiated with the following constructor call:
new Car(null, 0, "red", BigDecimal.ZERO);
```

### Different constructor

⚠️ NOT IMPLEMENTED YET

If you want to use a different constructor instead of the default selected one, annotated it with `@BuildableConstructor`

### Package
Expand Down
58 changes: 0 additions & 58 deletions bob/pom.xml

This file was deleted.

43 changes: 0 additions & 43 deletions compiler/pom.xml

This file was deleted.

This file was deleted.

41 changes: 0 additions & 41 deletions compiler/src/test/java/io/jonasg/bob/BobTests.java

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions core/pom.xml

This file was deleted.

40 changes: 0 additions & 40 deletions core/src/main/java/io/jonasg/bob/AbstractBuilder.java

This file was deleted.

8 changes: 0 additions & 8 deletions core/src/main/java/io/jonasg/bob/Builder.java

This file was deleted.

Loading

0 comments on commit e467f9f

Please sign in to comment.