/build.gradle (446ab05f9c5e77cb77076bbccc0d6cbdcdf655ed) (1395 bytes) (mode 100644) (type blob)
plugins {
id 'base'
}
/*
* Project version must be duplicated in the add-ons table-of-contents file (*.toc).
* No template manager or annotation parser is used for this purpose.
* That way, a ToC file with a placeholder for version that remains
* unprocessed will never be packaged and distributed.
*/
version = '1.0.0wip'
tasks.create('ldoc', Exec) {
executable 'ldoc'
args "--dir=${projectDir}/doc/", "${projectDir}/src/"
}
tasks.create('luacheck', Exec) {
executable 'luacheck'
args "--config .luacheckrc", "${projectDir}/src/"
}
/*
* The game client imposes a restriction on the add-on directory name.
* Specifically, only letters are allowed and no numbers or special characters.
* Therefore, version number is not included in the packaged add-on directory's name.
* However, the version number is still included in the distributed archive name.
*/
tasks.create('distZip', Zip) {
from("$projectDir") {
include '.luacheckrc'
include 'README.md'
include 'build.gradle'
include "${project.name}.toc"
into("${project.name}")
}
from("$projectDir/src/") {
into("${project.name}/src/")
include '**/*.lua'
}
from("$projectDir/doc/") {
into("${project.name}/doc/")
}
from("$projectDir/resources/") {
into("${project.name}/resources/")
}
}
distZip.dependsOn(ldoc)
check.dependsOn(luacheck)
assemble.dependsOn(distZip)
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
25 |
f9e4d8b7b114aa3c01824317ea9b0e4937815dbf |
.gitignore |
100644 |
blob |
1282 |
38bade5f4b3df02c703832d63e7d9d69a40924cc |
.luacheckrc |
100644 |
blob |
1355 |
7475a4fe0d5c2cbabcd8f3aaee2ea61e6da80c18 |
README.md |
100644 |
blob |
1395 |
446ab05f9c5e77cb77076bbccc0d6cbdcdf655ed |
build.gradle |
040000 |
tree |
- |
96233b34ccba706a9f89dca87a9282a3cd836e0a |
doc |
100644 |
blob |
377 |
7cd49ec8e4dd07884b8ac25ab4bb361cf21b5494 |
flowerpicker.toc |
100644 |
blob |
1435 |
fa968b82de11da1b3bc9716c4d0b08ca07208903 |
flowerpicker.xml |
040000 |
tree |
- |
a98140c69c08685544ff0baefaf8dfecd749c5f7 |
resources |
040000 |
tree |
- |
a9d4d768f6bb7260f05b7aa1c4c5c94827a19ce4 |
src |
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/vrtc/flowerpicker
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/vrtc/flowerpicker
Clone this repository using git:
git clone git://git.rocketgit.com/user/vrtc/flowerpicker
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main