GitXplorerGitXplorer
D

gradle-include-builder

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
3a6d9c872d5acc6cb1c24586f7fcc64dde405b17

Update workflow

DDanielLiu1123 committed 6 months ago
Verified
5113a3deba56d15fdeb83172e2b0fc27e79272a9

Update docs

DDanielLiu1123 committed 6 months ago
Verified
19b363897f724892317c6dd5ca68547e13ae96f9

Update docs

DDanielLiu1123 committed 6 months ago
Verified
7ea07b8bc219139f9bc4e75f0e3d59bee306352c

Merge pull request #6 from DanielLiu1123/feat-docs

DDanielLiu1123 committed 6 months ago
Verified
2622dce2f9471801d7bc156b06981a5e2533c61a

Update docs

DDanielLiu1123 committed 6 months ago
Verified
0c2bacac463afcde36d1f21023928adca56749db

Add intro

DDanielLiu1123 committed 6 months ago

README

The README file for this repository.

Gradle Include Builder

Build License: MIT

Gradle Include Builder is a script that aims to use source code of the dependencies to build gradle project, keep the code always updated, and make customization and extension easier.

Are you still:

  • Maintaining a private repository to share your Java libraries?
  • Waiting for a dependency to release a new version to fix your issue?

Why not use Java source code as dependencies?

Gradle provides Composite Builds to include external projects. This allows you to directly include the source code of the dependency library in your project, and you can easily customize and extend the library functions.

Quick Start

  • Apply include-builder script

    // settings.gradle
    apply from: 'https://raw.githubusercontent.com/DanielLiu1123/gradle-include-builder/main/include-build.gradle'
  • Define included projects

    # include-builder.yaml
    projects:
      - id: httpexchange-spring-boot-starter
        git:
          url: https://github.com/DanielLiu1123/httpexchange-spring-boot-starter
          branch: main
          path: third-party/httpexchange-spring-boot-starter
          extraArgs: --depth 1 --single-branch
      - dir:
          path: ../another-gradle-project
      - jar:
          url: https://repo1.maven.org/maven2/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar
          path: libs/gson.jar
  • Import specified modules

    // build.gradle
    dependencies {
        // From https://github.com/DanielLiu1123/httpexchange-spring-boot-starter (git)
        // Just like a normal dependency but without version
        implementation 'io.github.danielliu1123:httpexchange-spring-boot-starter'
    
        // From ../another-gradle-project (dir)
        implementation 'com.example:another-gradle-project'
    
        // From https://repo1.maven.org/maven2/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar (jar)
        // Use jar file as dependency
        implementation files('libs/gson.jar')
    }

Documentation

Go to Documentation to view the full documentation.

Code of Conduct

This project is governed by the Code of Conduct. By participating, you are expected to uphold this code of conduct. Please report unacceptable behavior to llw599502537@gmail.com.

License

The MIT License.