1
1
---
2
2
order : 3
3
- preferences : ["build-system"]
3
+ preferences : ["build-system", "paper-spigot" ]
4
4
authors :
5
5
- DerEchtePilz
6
6
- willkroboth
@@ -14,14 +14,15 @@ The annotation system is a separate part of the CommandAPI, and as a result it n
14
14
The annotation system effectively needs to be added twice: Once for compilation and again to invoke the annotation processor itself.
15
15
16
16
<div class =" maven " >
17
+ <div class =" paper " >
17
18
18
19
- Add the annotation dependency to your ` pom.xml ` :
19
20
20
21
``` xml
21
22
<dependencies >
22
23
<dependency >
23
24
<groupId >dev.jorel</groupId >
24
- <artifactId >commandapi-annotations</artifactId >
25
+ <artifactId >commandapi-paper- annotations</artifactId >
25
26
<version >11.0.0</version >
26
27
<scope >provided</scope >
27
28
</dependency >
@@ -41,7 +42,7 @@ The annotation system effectively needs to be added twice: Once for compilation
41
42
<annotationProcessorPaths >
42
43
<path >
43
44
<groupId >dev.jorel</groupId >
44
- <artifactId >commandapi-annotations</artifactId >
45
+ <artifactId >commandapi-paper- annotations</artifactId >
45
46
<version >11.0.0</version >
46
47
</path >
47
48
</annotationProcessorPaths >
@@ -51,49 +52,121 @@ The annotation system effectively needs to be added twice: Once for compilation
51
52
</build >
52
53
```
53
54
55
+ </div >
56
+ <div class =" spigot " >
57
+
58
+ - Add the annotation dependency to your ` pom.xml ` :
59
+
60
+ ``` xml
61
+ <dependencies >
62
+ <dependency >
63
+ <groupId >dev.jorel</groupId >
64
+ <artifactId >commandapi-spigot-annotations</artifactId >
65
+ <version >11.0.0</version >
66
+ <scope >provided</scope >
67
+ </dependency >
68
+ </dependencies >
69
+ ```
70
+
71
+ - Add the annotation processor as an annotation process to the compile task in the ` pom.xml ` :
72
+
73
+ ``` xml
74
+ <build >
75
+ <plugins >
76
+ <plugin >
77
+ <groupId >org.apache.maven.plugins</groupId >
78
+ <artifactId >maven-compiler-plugin</artifactId >
79
+ <version >3.8.1</version >
80
+ <configuration >
81
+ <annotationProcessorPaths >
82
+ <path >
83
+ <groupId >dev.jorel</groupId >
84
+ <artifactId >commandapi-spigot-annotations</artifactId >
85
+ <version >11.0.0</version >
86
+ </path >
87
+ </annotationProcessorPaths >
88
+ </configuration >
89
+ </plugin >
90
+ </plugins >
91
+ </build >
92
+ ```
93
+
94
+ </div >
54
95
</div >
55
96
<div class =" gradle " >
56
97
57
- - If you haven't already done so, add the maven central repository to your ` build.gradle ` file:
98
+ < div class = " groovy " >
58
99
59
- < div class = " groovy " >
100
+ - If you haven't already done so, add the maven central repository to your ` build.gradle ` file:
60
101
61
102
``` groovy
62
103
repositories {
63
104
mavenCentral()
64
105
maven { url = "https://repo.codemc.org/repository/maven-public/" }
65
106
}
66
107
```
67
- </div >
68
- <div class =" kts " >
108
+ </div >
109
+ <div class =" kts " >
110
+
111
+ - If you haven't already done so, add the maven central repository to your ` build.gradle.kts ` file:
69
112
70
113
``` kotlin
71
114
repositories {
72
115
mavenCentral()
73
116
maven(url = " https://repo.codemc.org/repository/maven-public/" )
74
117
}
75
118
```
76
- </div >
119
+ </div >
77
120
78
- - Add the dependency and annotation processor to your list of dependencies in your ` build.gradle ` file:
121
+ < div class = " groovy " >
79
122
80
- < div class = " groovy " >
123
+ - Add the dependency and annotation processor to your list of dependencies in your ` build.gradle ` file:
81
124
125
+ <div class =" paper " >
126
+
82
127
``` groovy
83
128
dependencies {
84
- compileOnly "dev.jorel:commandapi-annotations:11.0.0"
85
- annotationProcessor "dev.jorel:commandapi-annotations:11.0.0"
129
+ compileOnly "dev.jorel:commandapi-paper- annotations:11.0.0"
130
+ annotationProcessor "dev.jorel:commandapi-paper- annotations:11.0.0"
86
131
}
87
132
```
133
+
88
134
</div >
89
- <div class =" kts " >
135
+ <div class =" spigot " >
136
+
137
+ ``` groovy
138
+ dependencies {
139
+ compileOnly "dev.jorel:commandapi-spigot-annotations:11.0.0"
140
+ annotationProcessor "dev.jorel:commandapi-spigot-annotations:11.0.0"
141
+ }
142
+ ```
143
+
144
+ </div >
145
+ </div >
146
+ <div class =" kts " >
147
+
148
+ - Add the dependency and annotation processor to your list of dependencies in your ` build.gradle.kts ` file:
149
+
150
+ <div class =" paper " >
151
+
152
+ ``` kotlin
153
+ dependencies {
154
+ compileOnly(" dev.jorel:commandapi-paper-annotations:11.0.0" )
155
+ annotationProcessor(" dev.jorel:commandapi-paper-annotations:11.0.0" )
156
+ }
157
+ ```
90
158
159
+ </div >
160
+ <div class =" spigot " >
161
+
91
162
``` kotlin
92
163
dependencies {
93
- compileOnly(" dev.jorel:commandapi-annotations:11.0.0" )
94
- annotationProcessor(" dev.jorel:commandapi-annotations:11.0.0" )
164
+ compileOnly(" dev.jorel:commandapi-spigot- annotations:11.0.0" )
165
+ annotationProcessor(" dev.jorel:commandapi-spigot- annotations:11.0.0" )
95
166
}
96
167
```
168
+
97
169
</div >
170
+ </div >
98
171
99
172
</div >
0 commit comments