Skip to content

Commit 0e6f020

Browse files
committed
Update in-using.md
1 parent e9bedb4 commit 0e6f020

File tree

1 file changed

+1
-77
lines changed

1 file changed

+1
-77
lines changed

documentation/in-using.md

Lines changed: 1 addition & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,12 @@ The minecraft forge folder structure below will help you understand what is writ
1919
├── libraries
2020
├── mods (that's how it should be)
2121
│ ├── Permissions-1.14.4-X.X.X.X.jar
22-
│ └── Your mod with needed dependencies.
22+
│ └── Project Essentials Core-1.14.4-1.X.X.X.jar
2323
└── ...
2424
```
2525

2626
Place your mods and Permissions API mods according to the structure above.
2727

28-
**Important note**: your modification must include the `Kotlin` library, the `Kotlinx Serialization` library, this must be done if you use the Permissions API separately from the main Project Essentials module.
29-
30-
How to include dependencies in the assembly using Gradle is described later in the documentation.
31-
3228
#### 1.3 Verifying mod on the correct installation.
3329

3430
Run the game, check the number of mods, if the list of mods contains `Project Essentials Permissions` mod, then the mod has successfully passed the initialization of the modification.
@@ -282,76 +278,4 @@ PermissionsAPI.setUserPermissionNode
282278

283279
## These are all API methods, I think you understand that everything is very simple.
284280

285-
### 2.4 Resolving dependecies.
286-
287-
## You do not need to do this if next to the PermissionsAPI modification lies the basic Project Essentials mod!
288-
289-
> #### just make such in `build.gradle` file:
290-
291-
```groovy
292-
buildscript {
293-
dependencies {
294-
// kotlin version must be 1.3.50.
295-
classpath(
296-
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
297-
)
298-
classpath(
299-
"org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion"
300-
)
301-
}
302-
}
303-
304-
apply(plugin: "kotlin")
305-
apply(plugin: "java")
306-
apply(plugin: "kotlinx-serialization")
307-
308-
configurations {
309-
embed
310-
compile.extendsFrom(embed)
311-
}
312-
313-
repositories {
314-
jcenter()
315-
mavenCentral()
316-
}
317-
318-
// kotlin version must be 1.3.50.
319-
// kotlinx serialization version must be 0.12.0.
320-
321-
dependencies {
322-
compile(
323-
group: "org.jetbrains.kotlinx",
324-
name: "kotlinx-serialization-runtime",
325-
version: kotlinxSerializationVersion
326-
)
327-
embed(
328-
group: "org.jetbrains.kotlinx",
329-
name: "kotlinx-serialization-runtime",
330-
version: kotlinxSerializationVersion
331-
)
332-
compile(
333-
group: "org.jetbrains.kotlin",
334-
name: "kotlin-stdlib-$kotlinJdkVersionTarget",
335-
version: kotlinVersion
336-
)
337-
embed(
338-
group: "org.jetbrains.kotlin",
339-
name: "kotlin-stdlib-$kotlinJdkVersionTarget",
340-
version: kotlinVersion
341-
)
342-
}
343-
344-
jar {
345-
....
346-
from configurations.embed.collect {
347-
it.isDirectory() ? it : zipTree(it)
348-
}
349-
}
350-
351-
// jvmVersionTarget must be 1.8.
352-
353-
compileKotlin.kotlinOptions.jvmTarget =
354-
compileTestKotlin.kotlinOptions.jvmTarget = jvmVersionTarget
355-
```
356-
357281
### For all questions, be sure to write issues!

0 commit comments

Comments
 (0)