-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
68 lines (58 loc) · 2.16 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
plugins {
id 'java'
id 'application'
id 'io.neow3j.gradle-plugin' version "3.23.0"
}
group 'io.neow3j'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
// The next line is used for snapshot versions of neow3j
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
implementation 'io.neow3j:contract:3.23.0'
implementation 'io.neow3j:devpack:3.23.0'
implementation 'io.neow3j:compiler:3.23.0'
implementation 'io.neow3j:neofs:3.19.4-SNAPSHOT'
implementation 'ch.qos.logback:logback-classic:1.3.4'
}
tasks.withType(Test) {
useJUnitPlatform()
}
neow3jCompiler {
// Option 1: (easier/preferred)
// Set the class name of the contract to compile when running the `neow3jCompiler` Gradle task.
className = "io.neow3j.examples.contractdevelopment.contracts.FungibleToken"
// Option 2:
// If you want to set the contract class name as a project property,
// and then set the 'className' attribute through the command line,
// then you can:
//
// className = System.getProperty("className")
//
// Then, you can compile your code with:
// ./gradlew -q -P className=io.neow3j.examples.contractdevelopment.contracts.FungibleToken neow3jCompile
// Set neow3j compiler to generate debug symbols
debug = true
}
// The following configuration is *not* strictly required for a neow3j
// project.
// The following configuration enables you to execute any specific
// class file that contains a main() method, directly in the command line.
// For example:
// ./gradlew -q -P mainClass=io.neow3j.examples.contractdevelopment.CompileAndDeploy run
application {
mainClassName = project.hasProperty("mainClass") ? project.getProperty("mainClass") : "null"
}
// The following task is *not* required for a neow3j project.
// This is just a task to provide a convenient way to download
// all dependencies.
// task downloadDependencies(type: Exec) {
// configurations.testRuntime.files
// configurations.runtime.files
// configurations.runtimeClasspath.files
// commandLine 'echo', 'Downloaded all dependencies'
// }