Skip to content

Bld

Pure java build tool for developers who don't like dealing with build tools

8 Topics 39 Posts
  • Extensions

    Pinned
    15
    2 Votes
    15 Posts
    791 Views
    ethauvinE

    All the extensions have been updated for bld 2.1:

    bld ANTLR4 extension bld Archive extension bld Checkstyle extension bld Command Line Execution extension bld Generated Version extension bld JaCoCo Report extension bld Kotlin extension bld Detekt extension bld Dokka extension bld PIT Mutation Testing extension bld PMD extension bld Property File extension bld Spring Boot extension bld TestNG extension bld Tests Badge extension
  • bld advocacy ideas

    Pinned
    15
    2 Votes
    15 Posts
    498 Views
    D

    I totally underestimated how hard it would be to spread the idea of a new Java build tool. I'm struggling with JeKa too. It's a bit different, so now I’m focusing more on the simplicity aspect (concise configuration).

    That said, I still feel there's potential for wide adoption. I’ve seen some great reactions to ideas about Java scripting (e.g., Inside Java Newscast #63).

    To make an impact, maybe we need a "manifesto" explaining why Java needs a new build system. It should stay neutral but could mention tools like bld or JeKa as examples.

    One comment that stood out to me:
    "Java won’t feel truly attractive (or 'sexy') to new developers as long as it requires XML or Kotlin DSL for builds."

    What do you think about this idea? Where would be the best place to publish it? And how can I find co-authors?

  • bld v2.1 released!

    2
    0 Votes
    2 Posts
    52 Views
    ethauvinE

    All the extensions have also been updated:

    bld ANTLR4 extension bld Archive extension bld Checkstyle extension bld Command Line Execution extension bld Generated Version extension bld JaCoCo Report extension bld Kotlin extension bld Detekt extension bld Dokka extension bld PIT Mutation Testing extension bld PMD extension bld Property File extension bld Spring Boot extension bld TestNG extension bld Tests Badge extension
  • bld v2.0 released!

    2
    1 Votes
    2 Posts
    107 Views
    ethauvinE

    All the extensions have also been updated:

    ANTLR4 extension Archive extension Checkstyle extension Command Line Execution extension Generated Version extension JaCoCo Report extension PIT Mutation Testing extension PMD extension Property File extension Spring Boot extension TestNG extension Tests Badge extension

    The Kotlin extension has been completely reworked. It now compiles using a local installation of the Kotlin compiler, making it possible to test with multiple versions of Kotlin. Dokka now has its own extension. There's also a Kotlin project template on GitHub with support for the Dokka and Detekt extensions.

  • bld v1.9.0 released!

    1
    1 Votes
    1 Posts
    414 Views
    No one has replied
  • bld Tips & Tricks

    2
    1 Votes
    2 Posts
    208 Views
    ethauvinE

    Annotation processors are easy to use with bld. Generally, you'll just need to include processor as a dependency, for example:

    public class ExampleBuild extends Project { public ExampleBuild() { // ... scope(provided) .include(dependency("com.example", "annotator", version(1, 0, 0))); } }

    If the processor is generating source files, you can easily specify where they should be saved, using the -s javac option, for example:

    /** * Saves generated source files in the {@code build/generated} directory. */ @Override public void compile() throws Exception { var generated = new File(buildDirectory(), "generated"); var ignore = generated.mkdir(); compileOperation().compileOptions().addAll(List.of("-s", generated.getAbsolutePath())); super.compile(); }

    To incorporate the generated source code into the source tree, add this directory as an additional source location in your IDE.

    Screenshot from 2023-08-20 21-27-10.png

  • bld v1.7.2 released!

    1
    1 Votes
    1 Posts
    99 Views
    No one has replied
  • bld v1.7.1 released!

    1
    1 Votes
    1 Posts
    96 Views
    No one has replied