Skip to content

Commit

Permalink
package updated and plugin is validated now just need to publish to g…
Browse files Browse the repository at this point in the history
…radle now
  • Loading branch information
davidparry committed Sep 27, 2024
1 parent 9a38db7 commit 7d0e682
Show file tree
Hide file tree
Showing 33 changed files with 60 additions and 73 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ To include the plugin in your Gradle project, add the following to your `build.g

```groovy
plugins {
id 'ai.codium.cover.plugin' version '0.0.1'
id 'ai.qodo.cover.plugin' version '0.0.1'
}
```

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ plugins {
id 'jacoco'
}

group = 'ai.codium'
version = '1.0.0'
group = 'ai.qodo'
version = '0.0.1'

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion config/findbugs/include.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<FindBugsFilter>
<Package name="ai.codium.cover.plugin.*"/>
<Package name="ai.qodo.cover.plugin.*"/>
</FindBugsFilter>
12 changes: 6 additions & 6 deletions cover-agent-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
id 'com.gradleup.shadow' version '8.3.2'
}

group = 'ai.codium'
group = 'ai.qodo'
version = '0.0.1'

repositories {
Expand Down Expand Up @@ -47,10 +47,10 @@ gradlePlugin {
website = 'https://github.com/Codium-ai/gradle-cover-agent'
vcsUrl = 'https://github.com/Codium-ai/gradle-cover-agent.git'
coverAgent {
id = 'ai.codium.plugin.cover-agent'
implementationClass = 'ai.codium.cover.plugin.CoverAgentPlugin'
id = 'ai.qodo.plugin.cover-agent'
implementationClass = 'ai.qodo.cover.plugin.CoverAgentPlugin'
displayName = 'Cover Agent Plugin'
description = 'A plugin to cover agent functionality.'
description = 'A plugin to use Cover Agent in Gradle.'
tags = ['cover-agent', 'code-quality', 'unit-testing']

}
Expand Down Expand Up @@ -114,8 +114,8 @@ jacocoTestCoverageVerification {
violationRules {
rule {
excludes = [
'ai.codium.cover.plugin.CoverAgentPlugin',
'ai.codium.cover.plugin.CoverAgentTask',
'ai.qodo.cover.plugin.CoverAgentPlugin',
'ai.qodo.cover.plugin.CoverAgentTask',
'sun.util.resources.cldr.provider.CLDRLocaleDataMetaInfo'
]
element = 'CLASS'
Expand Down
2 changes: 1 addition & 1 deletion cover-agent-plugin/config/findbugs/include.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<FindBugsFilter>
<Package name="ai.codium.cover.plugin.*"/>
<Package name="ai.qodo.cover.plugin.*"/>
</FindBugsFilter>
53 changes: 20 additions & 33 deletions cover-agent-plugin/gradle/static-analysis.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,6 @@ checkstyleTest {
}


//spotbugsMain {
// ignoreFailures = false
// classes = fileTree(dir: 'build/classes/java/main', excludes: [
// '**/cover/CoverAgentPlugin.java',
// '**/cover/CoverAgentTask.java'
// ])
// dependsOn compileJava
//}
//
//spotbugsTest {
// ignoreFailures = true
//}

pmdMain {
ignoreFailures = false
ruleSets = []
Expand All @@ -50,16 +37,16 @@ jacoco {
jacocoTestReport {
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: ['ai/codium/cover/plugin/CoverAgentPlugin',
'ai/codium/cover/plugin/CoverAgentTask',
'ai/codium/cover/plugin/CoverAgent',
'ai/codium/cover/plugin/CoverAgentBuilder',
'ai/codium/cover/plugin/CoverAgentExtension',
'ai/codium/cover/plugin/CoverError',
'ai/codium/cover/plugin/ModelPrompter',
'ai/codium/cover/plugin/SourceFilePrompt',
'ai/codium/cover/plugin/TestInfoResponse',
'ai/codium/cover/plugin/CoverAgentExecutor'])
fileTree(dir: it, exclude: ['ai/qodo/cover/plugin/CoverAgentPlugin',
'ai/qodo/cover/plugin/CoverAgentTask',
'ai/qodo/cover/plugin/CoverAgent',
'ai/qodo/cover/plugin/CoverAgentBuilder',
'ai/qodo/cover/plugin/CoverAgentExtension',
'ai/qodo/cover/plugin/CoverError',
'ai/qodo/cover/plugin/ModelPrompter',
'ai/qodo/cover/plugin/SourceFilePrompt',
'ai/qodo/cover/plugin/TestInfoResponse',
'ai/qodo/cover/plugin/CoverAgentExecutor'])
}))
}
reports {
Expand All @@ -73,17 +60,17 @@ jacocoTestCoverageVerification {
violationRules {
rule {
excludes = [
'ai.codium.cover.plugin.CoverAgentPlugin',
'ai.codium.cover.plugin.CoverAgentTask',
'ai.qodo.cover.plugin.CoverAgentPlugin',
'ai.qodo.cover.plugin.CoverAgentTask',
'sun.util.resources.cldr.provider.CLDRLocaleDataMetaInfo',
'ai.codium.cover.plugin.CoverAgent',
'ai.codium.cover.plugin.CoverAgentBuilder',
'ai.codium.cover.plugin.CoverAgentExtension',
'ai.codium.cover.plugin.CoverError',
'ai.codium.cover.plugin.ModelPrompter',
'ai.codium.cover.plugin.SourceFilePrompt',
'ai.codium.cover.plugin.TestInfoResponse',
'ai.codium.cover.plugin.CoverAgentExecutor'
'ai.qodo.cover.plugin.CoverAgent',
'ai.qodo.cover.plugin.CoverAgentBuilder',
'ai.qodo.cover.plugin.CoverAgentExtension',
'ai.qodo.cover.plugin.CoverError',
'ai.qodo.cover.plugin.ModelPrompter',
'ai.qodo.cover.plugin.SourceFilePrompt',
'ai.qodo.cover.plugin.TestInfoResponse',
'ai.qodo.cover.plugin.CoverAgentExecutor'

]
element = 'CLASS'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin;
package ai.qodo.cover.plugin;

import dev.langchain4j.model.chat.ChatLanguageModel;
import dev.langchain4j.model.openai.OpenAiChatModel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin;
package ai.qodo.cover.plugin;

import dev.langchain4j.model.openai.OpenAiChatModel;
import org.gradle.api.Project;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin;
package ai.qodo.cover.plugin;

import org.gradle.api.Action;
import org.gradle.api.Project;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin;
package ai.qodo.cover.plugin;

import org.gradle.api.Project;
import org.gradle.api.model.ObjectFactory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin;
package ai.qodo.cover.plugin;


import org.gradle.api.Plugin;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin;
package ai.qodo.cover.plugin;

import dev.langchain4j.model.openai.OpenAiChatModel;
import org.gradle.api.DefaultTask;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin;
package ai.qodo.cover.plugin;

public class CoverError extends Exception {
public CoverError(String message, Throwable cause) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin;
package ai.qodo.cover.plugin;

import com.google.gson.Gson;
import dev.langchain4j.data.message.AiMessage;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin;
package ai.qodo.cover.plugin;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin;
package ai.qodo.cover.plugin;

public record TestInfoResponse(String filepath) {
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin
package ai.qodo.cover.plugin

import org.gradle.api.Project
import org.gradle.api.logging.Logger
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin
package ai.qodo.cover.plugin

import org.gradle.api.Action
import org.gradle.api.Project
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin
package ai.qodo.cover.plugin
import org.gradle.api.provider.Property;
import org.gradle.api.Project
import org.gradle.api.model.ObjectFactory
Expand All @@ -7,7 +7,7 @@ import spock.lang.Specification
class CoverAgentExtensionSpec extends Specification {
void setup() {
}
// Initializes ai.codium.cover.plugin.ConcreteCoverAgentExtension with a valid Project object
// Initializes ai.qodo.cover.plugin.ConcreteCoverAgentExtension with a valid Project object
def "should initialize with valid Project object"() {
given:
Project project = Mock(Project)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin
package ai.qodo.cover.plugin


import org.gradle.testkit.runner.GradleRunner
Expand Down Expand Up @@ -41,7 +41,7 @@ class CoverAgentPluginSpec extends Specification {
thava = new File(test, 'java')
thava.mkdirs()

String packagePath = 'ai/codium/test'
String packagePath = 'ai/qodo/test'
File sourcePackage = new File(hava, packagePath)
sourcePackage.mkdirs()
File testPackage = new File(thava, packagePath)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin
package ai.qodo.cover.plugin

import dev.langchain4j.model.openai.OpenAiChatModel
import org.gradle.api.Project
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin
package ai.qodo.cover.plugin

import dev.langchain4j.model.openai.OpenAiChatModel
import org.gradle.api.Project
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin
package ai.qodo.cover.plugin

import dev.langchain4j.data.message.AiMessage
import dev.langchain4j.model.chat.ChatLanguageModel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin
package ai.qodo.cover.plugin

import spock.lang.Specification

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin
package ai.qodo.cover.plugin

import spock.lang.Specification

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin;
package ai.qodo.cover.plugin;

import org.gradle.api.Project;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.cover.plugin;
package ai.qodo.cover.plugin;

public class ConcreteCoverAgentTask extends CoverAgentTask {

Expand Down
2 changes: 1 addition & 1 deletion cover-agent-plugin/src/test/resources/Calc.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.test;
package ai.qodo.test;
public class Calc {
public static void main(String[] args) {
int one = Integer.parseInt(args[0]);
Expand Down
2 changes: 1 addition & 1 deletion cover-agent-plugin/src/test/resources/CalcTest.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.test;
package ai.qodo.test;

import org.junit.jupiter.api.Test;

Expand Down
2 changes: 1 addition & 1 deletion cover-agent-plugin/src/test/resources/Main.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.test;
package ai.qodo.test;
public class Main {
public static void main(String[] args) {
int one = Integer.parseInt(args[0]);
Expand Down
2 changes: 1 addition & 1 deletion cover-agent-plugin/src/test/resources/MainTest.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ai.codium.test;
package ai.qodo.test;

import org.junit.jupiter.api.Test;

Expand Down
2 changes: 1 addition & 1 deletion cover-agent-plugin/src/test/resources/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'java'
id 'ai.codium.plugin.cover-agent'
id 'ai.qodo.plugin.cover-agent'
}

group = 'com.davidparry'
Expand Down
2 changes: 1 addition & 1 deletion test-project/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'java'
id 'jacoco'
id 'groovy'
id 'ai.codium.plugin.cover-agent' version '1.0-SNAPSHOT'
id 'ai.qodo.plugin.cover-agent' version '0.0.1'
}

repositories {
Expand Down

0 comments on commit 7d0e682

Please sign in to comment.