File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
src/main/java/com/github/breadmoirai/breadbot/framework/annotation/parameter Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ plugins {
30
30
final author = ' BreadMoirai'
31
31
final artifactId = ' breadbot-framework'
32
32
group " com.github.${ author.toLowerCase()} "
33
- version ' 0.12.0 '
33
+ version ' 0.12.1 '
34
34
35
35
// project.hasProperty never seems to work properly
36
36
final boolean keysArePresent = false
@@ -72,7 +72,10 @@ githubRelease {
72
72
if (keysArePresent)
73
73
token = project. getProperty(' github.key' ). toString()
74
74
String version = project. version
75
- it. body = " \n ## Adding as Dependency\n ### Gradle\n ```gradle\n repositories {\n jcenter()\n }\n\n dependencies {\n compile '$project . group :$artifactId :$project . version '\n }\n ```\n\n ### Maven\n ```xml\n <repository>\n <id>jcenter</id>\n <name>jcenter</name>\n <url>http://jcenter.bintray.com/</url>\n </repository>\n\n <dependency>\n <groupId>$project . group </groupId>\n <artifactId>$artifactId </artifactId>\n <version>$project . version </version>\n <type>pom</type>\n </dependency>\n ```"
75
+ def title = " "
76
+ it. name = " $version $title "
77
+ def content = " "
78
+ it. body = " $content \n ## Adding as Dependency\n ### Gradle\n ```gradle\n repositories {\n jcenter()\n }\n\n dependencies {\n compile '$project . group :$artifactId :$project . version '\n }\n ```\n\n ### Maven\n ```xml\n <repository>\n <id>jcenter</id>\n <name>jcenter</name>\n <url>http://jcenter.bintray.com/</url>\n </repository>\n\n <dependency>\n <groupId>$project . group </groupId>\n <artifactId>$artifactId </artifactId>\n <version>$project . version </version>\n <type>pom</type>\n </dependency>\n ```"
76
79
FilenameFilter filter = { dir , file -> file. contains(version) }
77
80
releaseAssets = jar. destinationDir. listFiles filter
78
81
// println releaseAssets.findAll()
Original file line number Diff line number Diff line change 3
3
import com .github .breadmoirai .breadbot .framework .event .CommandEvent ;
4
4
import net .dv8tion .jda .core .entities .Message ;
5
5
6
+ import java .lang .annotation .ElementType ;
7
+ import java .lang .annotation .Retention ;
8
+ import java .lang .annotation .RetentionPolicy ;
9
+ import java .lang .annotation .Target ;
10
+
6
11
import static com .github .breadmoirai .breadbot .framework .annotation .parameter .Content .Type .RAW_TRIMMED ;
7
12
8
13
/**
9
14
* Sets this string parameter to represent the message contents.
10
15
*/
16
+ @ Retention (RetentionPolicy .RUNTIME )
17
+ @ Target (ElementType .PARAMETER )
11
18
public @interface Content {
12
19
13
20
/**
You can’t perform that action at this time.
0 commit comments