Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Added support for gradle projects #85

Open
wants to merge 106 commits into
base: gh-pages
Choose a base branch
from

Conversation

RobotHanzo
Copy link

Description

This PR brings the ability to use Gradle as a build tool, for those who are more familiar / used to Gradle
The following features are offered:

  • A new key in repo.json config that indicates if that repo is supposed to be compiled with Gradle or Maven
  • A test that tests the functionality of Gradle building
  • A README.md reform that includes Gradle in it
  • Most important of all, compiles using Gradle shell script in the addon repo

Reason

As a follow up PR for Slimefun/Addon-Template#5 so it works in the future when one is using Gradle based template

resources/repos.json Outdated Show resolved Hide resolved
const process = require('child-process-promise')
const lodash = require('lodash/lang')

const FileSystem = require('fs')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, can just do fs/promises

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cant, theres one usage on fs.existSync

src/gradle.js Outdated Show resolved Hide resolved
src/gradle.js Outdated Show resolved Hide resolved
src/gradle.js Outdated Show resolved Hide resolved
src/main.js Outdated Show resolved Hide resolved
src/main.js Outdated Show resolved Hide resolved
src/main.js Outdated Show resolved Hide resolved
src/main.js Outdated Show resolved Hide resolved
src/main.js Outdated Show resolved Hide resolved
RobotHanzo and others added 27 commits May 11, 2021 18:47
Co-authored-by: Daniel Walsh <[email protected]>
Co-authored-by: Daniel Walsh <[email protected]>
Co-authored-by: Daniel Walsh <[email protected]>
Co-authored-by: Daniel Walsh <[email protected]>
Co-authored-by: Daniel Walsh <[email protected]>
Co-authored-by: Daniel Walsh <[email protected]>
Co-authored-by: Daniel Walsh <[email protected]>
Co-authored-by: Daniel Walsh <[email protected]>
Co-authored-by: Daniel Walsh <[email protected]>
Co-authored-by: Daniel Walsh <[email protected]>
Co-authored-by: Daniel Walsh <[email protected]>
@RobotHanzo
Copy link
Author

Builds fine other than the slimecraft repo not existing

@Seggan
Copy link
Contributor

Seggan commented Jul 1, 2021

I'm thinking of switching to Gradle on a few projects, this looks promising 👀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants