update package name
This commit is contained in:
		
							
								
								
									
										8
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							@@ -1,9 +1,7 @@
 | 
				
			|||||||
name: Maven Build and Release
 | 
					name: Maven Build and Release
 | 
				
			||||||
 | 
					
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  push:
 | 
					  workflow_dispatch:
 | 
				
			||||||
    branches:
 | 
					 | 
				
			||||||
      - main
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  release:
 | 
					  release:
 | 
				
			||||||
@@ -41,7 +39,7 @@ jobs:
 | 
				
			|||||||
      - name: Set up Git
 | 
					      - name: Set up Git
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          git config user.email "novice88@users.noreply.github.com"
 | 
					          git config user.email "novice88@users.noreply.github.com"
 | 
				
			||||||
          git config user.name "novice88"
 | 
					          git config user.name "novitechie"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Create Tag
 | 
					      - name: Create Tag
 | 
				
			||||||
        run: git tag -a v${{ github.run_number }} -m "Release version v${{ github.run_number }}"
 | 
					        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
 | 
					        uses: ncipollo/release-action@v1
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          artifacts: "jetbra-dist/target/jetbra-all.zip"
 | 
					          artifacts: "jetbra-dist/target/jetbra-all.zip"
 | 
				
			||||||
          tag: v${{ github.run_number }}
 | 
					          tag: Jetbra
 | 
				
			||||||
@@ -49,7 +49,7 @@
 | 
				
			|||||||
                    </descriptorRefs>
 | 
					                    </descriptorRefs>
 | 
				
			||||||
                    <archive>
 | 
					                    <archive>
 | 
				
			||||||
                        <manifestEntries>
 | 
					                        <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-Redefine-Classes>true</Can-Redefine-Classes>
 | 
				
			||||||
                            <Can-Retransform-Classes>true</Can-Retransform-Classes>
 | 
					                            <Can-Retransform-Classes>true</Can-Retransform-Classes>
 | 
				
			||||||
                        </manifestEntries>
 | 
					                        </manifestEntries>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package win.novice.li;
 | 
					package com.novitechie.jetbra;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import net.bytebuddy.agent.builder.AgentBuilder;
 | 
					import net.bytebuddy.agent.builder.AgentBuilder;
 | 
				
			||||||
import net.bytebuddy.asm.Advice;
 | 
					import net.bytebuddy.asm.Advice;
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package win.novice.li;
 | 
					package com.novitechie.jetbra;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.io.File;
 | 
					import java.io.File;
 | 
				
			||||||
import java.net.URI;
 | 
					import java.net.URI;
 | 
				
			||||||
@@ -1,9 +1,7 @@
 | 
				
			|||||||
package win.novice.li;
 | 
					package com.novitechie.jetbra;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import net.bytebuddy.asm.Advice;
 | 
					import net.bytebuddy.asm.Advice;
 | 
				
			||||||
import sun.net.www.http.HttpClient;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.lang.reflect.Field;
 | 
					 | 
				
			||||||
import java.lang.reflect.Method;
 | 
					import java.lang.reflect.Method;
 | 
				
			||||||
import java.net.SocketTimeoutException;
 | 
					import java.net.SocketTimeoutException;
 | 
				
			||||||
import java.util.Set;
 | 
					import java.util.Set;
 | 
				
			||||||
@@ -13,7 +11,7 @@ public class HttpClientAdvice {
 | 
				
			|||||||
    @Advice.OnMethodExit
 | 
					    @Advice.OnMethodExit
 | 
				
			||||||
    @SuppressWarnings("unchecked")
 | 
					    @SuppressWarnings("unchecked")
 | 
				
			||||||
    public static void intercept(@Advice.This Object httpClient) throws Exception {
 | 
					    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");
 | 
					        Method method = clazz.getDeclaredMethod("loadBlockUrlKeywords");
 | 
				
			||||||
        Set<String> BLOCK_URL_KEYWORDS = (Set<String>) method.invoke(null);
 | 
					        Set<String> BLOCK_URL_KEYWORDS = (Set<String>) method.invoke(null);
 | 
				
			||||||
        String clientString = httpClient.toString();
 | 
					        String clientString = httpClient.toString();
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package win.novice.li;
 | 
					package com.novitechie.jetbra;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import net.bytebuddy.asm.Advice;
 | 
					import net.bytebuddy.asm.Advice;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -13,7 +13,7 @@ public class PKIXBuilderParametersAdvice {
 | 
				
			|||||||
    @Advice.OnMethodEnter
 | 
					    @Advice.OnMethodEnter
 | 
				
			||||||
    @SuppressWarnings("unchecked")
 | 
					    @SuppressWarnings("unchecked")
 | 
				
			||||||
    public static void intercept(@Advice.Argument(value = 0, readOnly = false) Set<TrustAnchor> trustAnchors) throws Exception {
 | 
					    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");
 | 
					        Method method = clazz.getDeclaredMethod("loadTrustAnchors");
 | 
				
			||||||
        Set<TrustAnchor> loadedTrustAnchors = (Set<TrustAnchor>)method.invoke(null);
 | 
					        Set<TrustAnchor> loadedTrustAnchors = (Set<TrustAnchor>)method.invoke(null);
 | 
				
			||||||
        HashSet<TrustAnchor> newTrustAnchors = new HashSet<>(trustAnchors);
 | 
					        HashSet<TrustAnchor> newTrustAnchors = new HashSet<>(trustAnchors);
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package win.novice.li;
 | 
					package com.novitechie.jetbra;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import net.bytebuddy.asm.Advice;
 | 
					import net.bytebuddy.asm.Advice;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package win.novice.li;
 | 
					package com.novitechie.jetbra;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import org.springframework.boot.SpringApplication;
 | 
					import org.springframework.boot.SpringApplication;
 | 
				
			||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
 | 
					import org.springframework.boot.autoconfigure.SpringBootApplication;
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package win.novice.li.controller;
 | 
					package com.novitechie.jetbra.controller;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.fasterxml.jackson.databind.ObjectMapper;
 | 
					import com.fasterxml.jackson.databind.ObjectMapper;
 | 
				
			||||||
import lombok.SneakyThrows;
 | 
					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.PostMapping;
 | 
				
			||||||
import org.springframework.web.bind.annotation.RequestBody;
 | 
					import org.springframework.web.bind.annotation.RequestBody;
 | 
				
			||||||
import org.springframework.web.bind.annotation.RestController;
 | 
					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.io.InputStreamReader;
 | 
				
			||||||
import java.nio.charset.StandardCharsets;
 | 
					import java.nio.charset.StandardCharsets;
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package win.novice.li.model;
 | 
					package com.novitechie.jetbra.model;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import lombok.Data;
 | 
					import lombok.Data;
 | 
				
			||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
package win.novice.li.model;
 | 
					package com.novitechie.jetbra.model;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import lombok.Data;
 | 
					import lombok.Data;
 | 
				
			||||||
		Reference in New Issue
	
	Block a user