Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteafd65a

Browse files
authored
Rename utbot-gradle package (#83)
1 parent96aef0c commiteafd65a

17 files changed

+77
-95
lines changed

‎build.gradle‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ subprojects {
2727
applyplugin:'java'
2828
applyplugin:'maven-publish'
2929

30+
publishing {
31+
publications {
32+
jar(MavenPublication) {
33+
from components.java
34+
groupId'org.utbot'
35+
artifactId project.name
36+
}
37+
}
38+
}
39+
3040
repositories {
3141
mavenCentral()
3242
maven { url'https://jitpack.io' }

‎utbot-gradle/build.gradle‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ configurations.all {
1818
gradlePlugin {
1919
plugins {
2020
sarifReportPlugin {
21-
id='org.utbot.sarif'
22-
implementationClass='org.utbot.sarif.SarifGradlePlugin'
21+
id='org.utbot.gradle.plugin'
22+
implementationClass='org.utbot.gradle.plugin.SarifGradlePlugin'
2323
}
2424
}
2525
}

‎utbot-gradle/docs/utbot-gradle.md‎

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ In addition, it creates one big SARIF-report containing the results from all the
4343
<details>
4444
<summary>Groovy</summary>
4545
<pre>
46-
apply plugin: 'org.utbot.sarif'
46+
apply plugin: 'org.utbot.gradle.plugin'
4747
</pre>
4848
</details>
4949

5050
<details>
5151
<summary>Kotlin DSL</summary>
5252
<pre>
53-
apply(plugin = "org.utbot.sarif")
53+
apply(plugin = "org.utbot.gradle.plugin")
5454
</pre>
5555
</details>
5656

@@ -195,11 +195,8 @@ There are two ways to do it.
195195
buildscript {
196196
repositories {
197197
mavenLocal()
198-
maven {
199-
url "http://[your-ip]:[your-port]/repository/utbot-uber/"
200-
allowInsecureProtocol true
201-
}
202198
mavenCentral()
199+
maven { url 'https://jitpack.io' }
203200
}
204201
&nbsp;
205202
dependencies {
@@ -215,11 +212,8 @@ There are two ways to do it.
215212
buildscript {
216213
repositories {
217214
mavenLocal()
218-
maven {
219-
url = uri("http://[your-ip]:[your-port]/repository/utbot-uber/")
220-
isAllowInsecureProtocol = true
221-
}
222215
mavenCentral()
216+
maven { url 'https://jitpack.io' }
223217
}
224218
&nbsp;
225219
dependencies {
@@ -239,11 +233,8 @@ There are two ways to do it.
239233
buildscript {
240234
repositories {
241235
mavenLocal()
242-
maven {
243-
url "http://[your-ip]:[your-port]/repository/utbot-uber/"
244-
allowInsecureProtocol true
245-
}
246236
mavenCentral()
237+
maven { url 'https://jitpack.io' }
247238
}
248239
&nbsp;
249240
dependencies {
@@ -262,11 +253,8 @@ There are two ways to do it.
262253
buildscript {
263254
repositories {
264255
mavenLocal()
265-
maven {
266-
url = uri("http://[your-ip]:[your-port]/repository/utbot-uber/")
267-
isAllowInsecureProtocol = true
268-
}
269256
mavenCentral()
257+
maven { url 'https://jitpack.io' }
270258
}
271259
&nbsp;
272260
dependencies {

‎utbot-gradle/src/main/kotlin/org/utbot/sarif/CreateSarifReportTask.kt‎renamed to ‎utbot-gradle/src/main/kotlin/org/utbot/gradle/plugin/CreateSarifReportTask.kt‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
packageorg.utbot.sarif
1+
packageorg.utbot.gradle.plugin
22

3+
importmu.KLogger
4+
importorg.gradle.api.DefaultTask
5+
importorg.gradle.api.tasks.TaskAction
36
importorg.utbot.common.bracket
47
importorg.utbot.common.debug
58
importorg.utbot.framework.codegen.ForceStaticMocking
@@ -9,18 +12,16 @@ import org.utbot.framework.plugin.api.UtBotTestCaseGenerator
912
importorg.utbot.framework.plugin.api.UtTestCase
1013
importorg.utbot.framework.plugin.api.util.UtContext
1114
importorg.utbot.framework.plugin.api.util.withUtContext
12-
importorg.utbot.sarif.extension.SarifGradleExtensionProvider
13-
importorg.utbot.sarif.wrappers.GradleProjectWrapper
14-
importorg.utbot.sarif.wrappers.SourceFindingStrategyGradle
15-
importorg.utbot.sarif.wrappers.SourceSetWrapper
16-
importorg.utbot.sarif.wrappers.TargetClassWrapper
15+
importorg.utbot.gradle.plugin.extension.SarifGradleExtensionProvider
16+
importorg.utbot.gradle.plugin.wrappers.GradleProjectWrapper
17+
importorg.utbot.gradle.plugin.wrappers.SourceFindingStrategyGradle
18+
importorg.utbot.gradle.plugin.wrappers.SourceSetWrapper
19+
importorg.utbot.gradle.plugin.wrappers.TargetClassWrapper
20+
importorg.utbot.sarif.SarifReport
1721
importorg.utbot.summary.summarize
1822
importjava.net.URLClassLoader
1923
importjava.nio.file.Path
2024
importjavax.inject.Inject
21-
importmu.KLogger
22-
importorg.gradle.api.DefaultTask
23-
importorg.gradle.api.tasks.TaskAction
2425

2526
/**
2627
* The main class containing the entry point [createSarifReport].
@@ -59,7 +60,7 @@ open class CreateSarifReportTask @Inject constructor(
5960
// internal
6061

6162
// overwriting the getLogger() function from the DefaultTask
62-
privateval logger:KLogger= org.utbot.sarif.logger
63+
privateval logger:KLogger= org.utbot.gradle.plugin.logger
6364

6465
/**
6566
* Generates tests and a SARIF report for classes in the [gradleProject] and in all its child projects.

‎utbot-gradle/src/main/kotlin/org/utbot/sarif/SarifGradlePlugin.kt‎renamed to ‎utbot-gradle/src/main/kotlin/org/utbot/gradle/plugin/SarifGradlePlugin.kt‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
packageorg.utbot.sarif
1+
packageorg.utbot.gradle.plugin
22

3-
importorg.utbot.sarif.extension.SarifGradleExtension
4-
importorg.utbot.sarif.extension.SarifGradleExtensionProvider
5-
importjava.io.File
3+
importmu.KotlinLogging
64
importorg.gradle.api.Plugin
75
importorg.gradle.api.Project
86
importorg.gradle.api.plugins.JavaPluginConvention
97
importorg.gradle.api.tasks.SourceSet
108
importorg.gradle.api.tasks.TaskProvider
11-
importmu.KotlinLogging
9+
importorg.utbot.gradle.plugin.extension.SarifGradleExtension
10+
importorg.utbot.gradle.plugin.extension.SarifGradleExtensionProvider
11+
importjava.io.File
1212

1313
internalval logger=KotlinLogging.logger {}
1414

‎utbot-gradle/src/main/kotlin/org/utbot/sarif/extension/SarifGradleExtension.kt‎renamed to ‎utbot-gradle/src/main/kotlin/org/utbot/gradle/plugin/extension/SarifGradleExtension.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
packageorg.utbot.sarif.extension
1+
packageorg.utbot.gradle.plugin.extension
22

33
importorg.gradle.api.provider.ListProperty
44
importorg.gradle.api.provider.Property

‎utbot-gradle/src/main/kotlin/org/utbot/sarif/extension/SarifGradleExtensionProvider.kt‎renamed to ‎utbot-gradle/src/main/kotlin/org/utbot/gradle/plugin/extension/SarifGradleExtensionProvider.kt‎

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
1-
packageorg.utbot.sarif.extension
1+
packageorg.utbot.gradle.plugin.extension
22

3+
importorg.gradle.api.Project
34
importorg.utbot.common.PathUtil.toPath
45
importorg.utbot.engine.Mocker
5-
importorg.utbot.framework.codegen.ForceStaticMocking
6-
importorg.utbot.framework.codegen.Junit4
7-
importorg.utbot.framework.codegen.Junit5
8-
importorg.utbot.framework.codegen.MockitoStaticMocking
9-
importorg.utbot.framework.codegen.NoStaticMocking
10-
importorg.utbot.framework.codegen.StaticsMocking
11-
importorg.utbot.framework.codegen.TestFramework
12-
importorg.utbot.framework.codegen.TestNg
6+
importorg.utbot.framework.codegen.*
137
importorg.utbot.framework.plugin.api.ClassId
148
importorg.utbot.framework.plugin.api.CodegenLanguage
159
importorg.utbot.framework.plugin.api.MockFramework
1610
importorg.utbot.framework.plugin.api.MockStrategyApi
1711
importjava.io.File
18-
importorg.gradle.api.Project
1912

2013
/**
2114
* Provides all [SarifGradleExtension] fields in a convenient form:

‎utbot-gradle/src/main/kotlin/org/utbot/sarif/wrappers/GradleProjectWrapper.kt‎renamed to ‎utbot-gradle/src/main/kotlin/org/utbot/gradle/plugin/wrappers/GradleProjectWrapper.kt‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
packageorg.utbot.sarif.wrappers
1+
packageorg.utbot.gradle.plugin.wrappers
22

3-
importorg.utbot.common.FileUtil.createNewFileWithParentDirectories
4-
importorg.utbot.sarif.extension.SarifGradleExtensionProvider
5-
importjava.io.File
6-
importjava.nio.file.Paths
73
importorg.gradle.api.Project
84
importorg.gradle.api.plugins.JavaPluginConvention
95
importorg.gradle.api.tasks.SourceSet
6+
importorg.utbot.common.FileUtil.createNewFileWithParentDirectories
7+
importorg.utbot.gradle.plugin.extension.SarifGradleExtensionProvider
8+
importjava.io.File
9+
importjava.nio.file.Paths
1010

1111
/**
1212
* Contains information about the gradle project for which we are creating a SARIF report.

‎utbot-gradle/src/main/kotlin/org/utbot/sarif/wrappers/SourceFindingStrategyGradle.kt‎renamed to ‎utbot-gradle/src/main/kotlin/org/utbot/gradle/plugin/wrappers/SourceFindingStrategyGradle.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
packageorg.utbot.sarif.wrappers
1+
packageorg.utbot.gradle.plugin.wrappers
22

33
importorg.utbot.common.PathUtil
44
importorg.utbot.common.PathUtil.toPath

‎utbot-gradle/src/main/kotlin/org/utbot/sarif/wrappers/SourceSetWrapper.kt‎renamed to ‎utbot-gradle/src/main/kotlin/org/utbot/gradle/plugin/wrappers/SourceSetWrapper.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
packageorg.utbot.sarif.wrappers
1+
packageorg.utbot.gradle.plugin.wrappers
22

3+
importorg.gradle.api.tasks.SourceSet
34
importorg.utbot.common.FileUtil.createNewFileWithParentDirectories
45
importorg.utbot.common.FileUtil.findAllFilesOnly
56
importorg.utbot.common.PathUtil.classFqnToPath
@@ -14,7 +15,6 @@ import java.io.File
1415
importjava.net.URLClassLoader
1516
importjava.nio.file.Path
1617
importjava.nio.file.Paths
17-
importorg.gradle.api.tasks.SourceSet
1818

1919
classSourceSetWrapper(
2020
valsourceSet:SourceSet,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp