在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):fundacionjala/enforce-gradle-plugin开源软件地址(OpenSource Url):https://github.com/fundacionjala/enforce-gradle-plugin开源编程语言(OpenSource Language):Groovy 94.0%开源软件介绍(OpenSource Introduction):Quick startGeneral descriptionThis project is a Gradle plugin that provides useful tasks for implement a Continuous Integration process for SalesForce projects. How can you use this plugin?Here you can find the enought required information to have running a Gradle project with Enforce. 1.Create build.gradle file on your source code project, below you have an example: buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'org.fundacionjala.gradle.plugins.enforce:enforce-gradle-plugin:1.1.5'
}
}
apply plugin: 'enforce'
enforce {
srcPath = 'src'
} 2.Register a Salesforce credential to be used $ gradle addCredential -Pid=default
-Pusername=<USER NAME>
-Ppassword=<PASSWORD>
-Ptoken=<SECURITY TOKEN> In this step is recomendable put credential id as default value, to run the EnForce tasks without using credentialId parameter. Executing a task without credentialId parameter:
It uses the default credential. Executing a task with credentialId parameter:
This credential will be saved in credentials.dat file located in user HOME directory. 3.Start executing available commands, for example, deploy all classes from your local repository to your organization.
Now you can start using all the Enforce features. Reports
JUnit test result reportConfiguration
Preview Enforce code coverage and test result report
Configuration
DevelopmentRequirements
Using the plugin in your gradle build scriptYou can use your own gradle version but to avoid unexpected results with the compatibility we recommend to use the gradle wrapper. You can modify the build.gradle file and specify your version there. It is desired a basic knowledge about Gradle and its plugin mechanism, as starting point you can review:Once you have the source code, open the source code in a console and execute:
Please, make sure that your changes are not breaking any functionality running the unit test:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论