update package name

This commit is contained in:
novice.li 2024-03-13 22:15:10 +08:00
parent 4d75a257be
commit dead60fd49
11 changed files with 16 additions and 20 deletions

View File

@ -1,9 +1,7 @@
name: Maven Build and Release
on:
push:
branches:
- main
workflow_dispatch:
jobs:
release:
@ -41,7 +39,7 @@ jobs:
- name: Set up Git
run: |
git config user.email "novice88@users.noreply.github.com"
git config user.name "novice88"
git config user.name "novitechie"
- name: Create Tag
run: git tag -a v${{ github.run_number }} -m "Release version v${{ github.run_number }}"
@ -54,4 +52,4 @@ jobs:
uses: ncipollo/release-action@v1
with:
artifacts: "jetbra-dist/target/jetbra-all.zip"
tag: v${{ github.run_number }}
tag: Jetbra

View File

@ -49,7 +49,7 @@
</descriptorRefs>
<archive>
<manifestEntries>
<Premain-Class>win.novice.li.AgentMain</Premain-Class>
<Premain-Class>com.novitechie.jetbra.AgentMain</Premain-Class>
<Can-Redefine-Classes>true</Can-Redefine-Classes>
<Can-Retransform-Classes>true</Can-Retransform-Classes>
</manifestEntries>

View File

@ -1,4 +1,4 @@
package win.novice.li;
package com.novitechie.jetbra;
import net.bytebuddy.agent.builder.AgentBuilder;
import net.bytebuddy.asm.Advice;

View File

@ -1,4 +1,4 @@
package win.novice.li;
package com.novitechie.jetbra;
import java.io.File;
import java.net.URI;

View File

@ -1,9 +1,7 @@
package win.novice.li;
package com.novitechie.jetbra;
import net.bytebuddy.asm.Advice;
import sun.net.www.http.HttpClient;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.net.SocketTimeoutException;
import java.util.Set;
@ -13,7 +11,7 @@ public class HttpClientAdvice {
@Advice.OnMethodExit
@SuppressWarnings("unchecked")
public static void intercept(@Advice.This Object httpClient) throws Exception {
Class<?> clazz = Class.forName("win.novice.li.ConfigHelper", true, ClassLoader.getSystemClassLoader());
Class<?> clazz = Class.forName("com.novitechie.jetbra.ConfigHelper", true, ClassLoader.getSystemClassLoader());
Method method = clazz.getDeclaredMethod("loadBlockUrlKeywords");
Set<String> BLOCK_URL_KEYWORDS = (Set<String>) method.invoke(null);
String clientString = httpClient.toString();

View File

@ -1,4 +1,4 @@
package win.novice.li;
package com.novitechie.jetbra;
import net.bytebuddy.asm.Advice;
@ -13,7 +13,7 @@ public class PKIXBuilderParametersAdvice {
@Advice.OnMethodEnter
@SuppressWarnings("unchecked")
public static void intercept(@Advice.Argument(value = 0, readOnly = false) Set<TrustAnchor> trustAnchors) throws Exception {
Class<?> clazz = Class.forName("win.novice.li.ConfigHelper", true, ClassLoader.getSystemClassLoader());
Class<?> clazz = Class.forName("com.novitechie.jetbra.ConfigHelper", true, ClassLoader.getSystemClassLoader());
Method method = clazz.getDeclaredMethod("loadTrustAnchors");
Set<TrustAnchor> loadedTrustAnchors = (Set<TrustAnchor>)method.invoke(null);
HashSet<TrustAnchor> newTrustAnchors = new HashSet<>(trustAnchors);

View File

@ -1,4 +1,4 @@
package win.novice.li;
package com.novitechie.jetbra;
import net.bytebuddy.asm.Advice;

View File

@ -1,4 +1,4 @@
package win.novice.li;
package com.novitechie.jetbra;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

View File

@ -1,4 +1,4 @@
package win.novice.li.controller;
package com.novitechie.jetbra.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.SneakyThrows;
@ -11,7 +11,7 @@ import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import win.novice.li.model.License;
import com.novitechie.jetbra.model.License;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;

View File

@ -1,4 +1,4 @@
package win.novice.li.model;
package com.novitechie.jetbra.model;
import lombok.Data;

View File

@ -1,5 +1,5 @@
package win.novice.li.model;
package com.novitechie.jetbra.model;
import lombok.Data;